.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: hidden;
  z-index: 0;
  background: linear-gradient(
    120deg,
    #f8eed9 0%,
    #edd4a5 28%,
    #fff2d8 52%,
    #e7c584 78%,
    #f6ead0 100%
  );
  background-size: 230% 230%;
  background-position: 0% 50%;
  animation: pgf-bills-create-bg 3.1s linear infinite;
}

.pgf-create-new-bill-buttons::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 14%,
    rgba(255, 255, 255, 0.48) 42%,
    rgba(255, 255, 255, 0) 74%
  );
  transform: translateX(-130%);
  pointer-events: none;
  z-index: 1;
  animation: pgf-bills-create-sheen 2.15s ease-in-out infinite;
}

.pgf-create-new-bill-buttons::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 1px solid rgba(184, 143, 72, 0.58);
  box-shadow:
    0 0 0 0 rgba(184, 143, 72, 0.22),
    0 0 0 0 rgba(255, 231, 176, 0.16);
  pointer-events: none;
  z-index: 2;
  animation: pgf-bills-create-ring 2.2s ease-in-out infinite;
}

.pgf-create-new-bill-buttons:hover,
.pgf-create-new-bill-buttons:focus {
  animation-play-state: paused;
}

.pgf-create-new-bill-buttons:hover::before,
.pgf-create-new-bill-buttons:focus::before {
  animation-play-state: paused;
}

.pgf-create-new-bill-buttons:hover::after,
.pgf-create-new-bill-buttons:focus::after {
  animation-play-state: paused;
  box-shadow:
    0 0 0 5px rgba(184, 143, 72, 0.26),
    0 0 30px rgba(255, 231, 176, 0.34);
}

@keyframes pgf-bills-create-bg {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow:
      0 4px 10px rgba(70, 54, 31, 0.11),
      inset 0 1px 0 rgba(255, 255, 255, 0.46);
  }
  45% {
    background-position: 70% 50%;
    box-shadow:
      0 8px 18px rgba(115, 86, 42, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.62);
  }
  70% {
    background-position: 100% 50%;
  }
}

@keyframes pgf-bills-create-sheen {
  0% {
    transform: translateX(-130%);
    opacity: 0;
  }
  16% {
    opacity: 0.88;
  }
  62% {
    opacity: 0.3;
  }
  100% {
    transform: translateX(130%);
    opacity: 0;
  }
}

@keyframes pgf-bills-create-ring {
  0%,
  100% {
    transform: scale(1);
    border-color: rgba(184, 143, 72, 0.52);
    box-shadow:
      0 0 0 0 rgba(184, 143, 72, 0.2),
      0 0 0 0 rgba(255, 231, 176, 0.12);
  }
  50% {
    transform: scale(1.03);
    border-color: rgba(206, 161, 89, 0.92);
    box-shadow:
      0 0 0 6px rgba(184, 143, 72, 0.16),
      0 0 26px rgba(255, 231, 176, 0.32);
  }
}

.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(
    135deg,
    #fff8eb 0%,
    #f6e9c7 28%,
    #fff4dd 50%,
    #f0d8a9 77%,
    #fff2db 100%
  );
  background-size: 220% 220%;
  background-position: 0% 50%;
  border-color: #d4c09b;
  animation:
    pgf-bills-voting-bg 5.6s linear infinite,
    pgf-bills-voting-glow 3.2s ease-in-out infinite;
}

.pgf-bills-list-item.pgf-bills-voting-pending {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eef8ff, #def0ff);
  border-color: #9fc8dd;
  animation: pgf-bills-pending-pulse 2.6s ease-in-out infinite;
}

.pgf-bills-list-item.pgf-bills-voting-pending::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  pointer-events: none;
  background: linear-gradient(180deg, #7cc0e4, #4aa4d4);
  opacity: 0.8;
}

.pgf-bills-list-item.pgf-bills-voting-pending::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(83, 175, 221, 0.68);
  pointer-events: none;
  animation: pgf-bills-pending-ring 2.6s ease-in-out infinite;
}

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

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

@keyframes pgf-bills-pending-pulse {
  0%,
  100% {
    box-shadow:
      0 8px 18px rgba(28, 24, 18, 0.11),
      0 2px 7px rgba(28, 24, 18, 0.07),
      0 0 0 0 rgba(83, 175, 221, 0.14);
  }
  50% {
    box-shadow:
      0 10px 22px rgba(28, 24, 18, 0.15),
      0 3px 9px rgba(28, 24, 18, 0.09),
      0 0 0 4px rgba(83, 175, 221, 0.16);
  }
}

@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-voting-bg {
  0%,
  100% {
    background-position: 0% 50%;
  }
  45% {
    background-position: 66% 50%;
  }
  72% {
    background-position: 100% 50%;
  }
}

@keyframes pgf-bills-pending-ring {
  0%,
  100% {
    border-color: rgba(83, 175, 221, 0.56);
    opacity: 0.54;
  }
  50% {
    border-color: rgba(106, 206, 255, 0.84);
    opacity: 0.9;
  }
}

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

.pgf-bills-record-title-text {
  display: inline-block;
  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;
  overflow-wrap: anywhere;
  word-break: break-word;
}

a.pgf-bills-record-title-text {
  text-decoration: none;
}

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

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

.pgf-bills-voting-pending .pgf-bills-record-title-text {
  color: #1f5070;
  background-image: linear-gradient(
    180deg,
    rgba(84, 174, 220, 0.98),
    rgba(84, 174, 220, 0.98)
  );
  background-size: 100% 2px;
}

.pgf-bills-list-item.is-accepted .pgf-bills-record-title-text {
  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-text {
  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-text {
  color: #6a4517;
  background-image: linear-gradient(180deg, rgba(188, 141, 62, 0.78), rgba(188, 141, 62, 0.78));
}

.pgf-bills-list-item.pgf-bills-voting-pending.pgf-bills-reading {
  animation: none;
  background: linear-gradient(180deg, #eef8ff, #ddf0ff);
  border-color: #a9cfe4;
  box-shadow:
    0 10px 22px rgba(28, 24, 18, 0.11),
    0 2px 7px rgba(28, 24, 18, 0.07);
}

.pgf-bills-list-item.pgf-bills-voting-pending.pgf-bills-reading::before,
.pgf-bills-list-item.pgf-bills-voting-pending.pgf-bills-reading::after {
  animation: none;
  opacity: 0;
}

.pgf-bills-record-vote-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.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-vote-actions-inline {
  margin-top: 10px;
}

.pgf-bills-record-details {
  margin-top: 10px;
  border-radius: 11px;
  border: 1px solid #d8c9b5;
  background: rgba(255, 252, 246, 0.92);
  overflow: hidden;
}

.pgf-bills-record-details-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  color: #4a3c2b;
  font-size: 0.92rem;
  font-weight: 700;
  user-select: none;
}

.pgf-bills-record-details-summary::-webkit-details-marker {
  display: none;
}

.pgf-bills-record-details-summary::after {
  content: "▾";
  color: #7b6544;
  font-size: 0.8rem;
  transition: transform 0.16s ease;
}

.pgf-bills-record-details[open] .pgf-bills-record-details-summary::after {
  transform: rotate(180deg);
}

.pgf-bills-record-details-body {
  border-top: 1px solid #ddcfbb;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.pgf-bills-record-details-body .pgf-bills-subsection-title {
  margin: 0;
}

.pgf-bills-card-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  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-shell-show {
  width: min(1140px, 100%);
}

.pgf-bills-shell-show .pgf-bills-content {
  gap: 14px;
}

.pgf-bills-shell-show .easy-block {
  border-radius: 16px;
}

.pgf-bills-shell-show .pgf-bills-show-top {
  align-items: center;
  background:
    radial-gradient(circle at 8% 10%, rgba(178, 137, 66, 0.12), transparent 34%),
    linear-gradient(180deg, #fff9ee, #f5e8d2);
}

.pgf-bills-shell-show .pgf-bills-show-title {
  font-size: clamp(1.34rem, 2.1vw, 1.95rem);
  color: #2e2318;
}

.pgf-bills-shell-show .pgf-bills-show-actions {
  gap: 10px;
}

.pgf-bills-shell-show .pgf-bills-info-card,
.pgf-bills-shell-show .pgf-bills-details-card,
.pgf-bills-shell-show .pgf-bills-folklore-card,
.pgf-bills-shell-show .pgf-bills-thread-card {
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(247, 238, 222, 0.9));
}

.pgf-bills-shell-show .pgf-bills-details-card,
.pgf-bills-shell-show .pgf-bills-folklore-card {
  box-shadow: 0 10px 22px rgba(35, 29, 20, 0.09);
}

.pgf-bills-shell-show .pgf-bills-thread-card {
  position: relative;
  overflow: hidden;
  border-color: #d8c9b3;
  box-shadow: 0 14px 30px rgba(32, 27, 19, 0.11);
}

.pgf-bills-shell-show .pgf-bills-thread-card .pgf-forum-block {
  display: grid;
  gap: 12px;
}

.pgf-bills-shell-show .pgf-bills-thread-card .pgf-forum-block > br {
  display: none;
}

.pgf-bills-shell-show .pgf-bills-thread-card .pgf-forum-block > hr {
  margin: 0;
  border: 0;
  border-top: 1px solid #dcccaf;
}

.pgf-bills-shell-show .pgf-bills-thread-card .pgf-forum-block > h4 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: #2e261c;
}

.pgf-bills-shell-show .pgf-bills-thread-card .pagination {
  float: none;
  margin: 0;
}

.pgf-bills-shell-show .pgf-bills-thread-card .pagination.pull-left {
  justify-self: start;
}

.pgf-bills-shell-show .pgf-bills-thread-card .pagination.pagination-right {
  justify-self: end;
}

.pgf-bills-shell-show .pgf-bills-thread-card .pagination ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pgf-bills-shell-show .pgf-bills-thread-card .pagination ul > li {
  margin: 0;
}

.pgf-bills-shell-show .pgf-bills-thread-card .pagination ul > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid #cfbfa7;
  background: #fbf2e2;
  color: #4b3a24;
  text-shadow: none;
  white-space: nowrap;
  font-size: 0.9rem;
}

.pgf-bills-shell-show .pgf-bills-thread-card .pagination ul > li.active > a,
.pgf-bills-shell-show .pgf-bills-thread-card .pagination ul > li > a:hover,
.pgf-bills-shell-show .pgf-bills-thread-card .pagination ul > li > a:focus {
  background: #f0dfc2;
  border-color: #b89d74;
  color: #3a2d1d;
  text-decoration: none;
}

.pgf-bills-shell-show .pgf-bills-thread-card table.post {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #d7c8b2;
  border-radius: 14px;
  overflow: hidden;
  background: #fffdf9;
  box-shadow: 0 8px 20px rgba(31, 25, 17, 0.08);
}

.pgf-bills-shell-show .pgf-bills-thread-card table.post + table.post {
  margin-top: 10px;
}

.pgf-bills-shell-show .pgf-bills-thread-card .post .info-head {
  width: 190px !important;
  min-width: 190px;
  border-top: 0;
  border-bottom: 1px solid #dacbb4;
  background: linear-gradient(180deg, #f6f2ea, #efe5d8);
  color: #2f271d;
  font-size: 1.02rem;
  font-weight: 700;
}

.pgf-bills-shell-show .pgf-bills-thread-card .post .head {
  border-top: 0;
  border-bottom: 1px solid #dacbb4;
  background: linear-gradient(180deg, #fcf8ef, #f4ead9);
  padding: 8px 10px;
}

.pgf-bills-shell-show .pgf-bills-thread-card .post .head div {
  display: inline-flex;
  align-items: center;
  padding: 0 6px 0 0;
}

.pgf-bills-shell-show .pgf-bills-thread-card .post .head div[style*="float: right"] {
  float: none !important;
  margin-left: auto;
}

.pgf-bills-shell-show .pgf-bills-thread-card .post .head a {
  color: #4b6a32;
}

.pgf-bills-shell-show .pgf-bills-thread-card .post .head .pgf-format-datetime {
  color: #5f5140;
  font-weight: 700;
}

.pgf-bills-shell-show .pgf-bills-thread-card .post .info {
  width: 190px !important;
  min-width: 190px;
  height: auto;
  border-right: 1px solid #dacbb4;
  border-bottom: 0;
  background: linear-gradient(180deg, #f5f9fb, #edf3f6);
  padding: 10px 10px 12px;
  text-align: center;
  color: #55606b;
}

.pgf-bills-shell-show .pgf-bills-thread-card .post .message {
  padding: 12px 14px;
  background: #fffdfa;
  color: #2f2922;
  vertical-align: top;
}

.pgf-bills-shell-show .pgf-bills-thread-card .post .message .pgf-message {
  font-size: 1.03rem;
  line-height: 1.56;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pgf-bills-shell-show .pgf-bills-thread-card .post .message .pgf-message img,
.pgf-bills-shell-show .pgf-bills-thread-card .post .message .pgf-message table,
.pgf-bills-shell-show .pgf-bills-thread-card .post .message .pgf-message iframe,
.pgf-bills-shell-show .pgf-bills-thread-card .post .message .pgf-message pre {
  max-width: 100%;
}

.pgf-bills-shell-show .pgf-bills-thread-card .new-post-form {
  margin-top: 4px;
  display: grid;
  gap: 10px;
  border: 1px solid #dbcdb8;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #fdfaf3, #f4ead9);
}

.pgf-bills-shell-show .pgf-bills-thread-card .new-post-form textarea {
  min-height: 220px;
}

.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;
  position: relative;
  overflow: hidden;
  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);
  background-size: 220% 220%;
  background-position: 0% 50%;
  transition: transform 0.14s ease, box-shadow 0.16s ease, filter 0.16s ease;
  animation:
    pgf-bills-vote-attention 1.65s ease-in-out infinite,
    pgf-bills-vote-bg 3s linear infinite,
    pgf-bills-vote-sweep 2.5s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.pgf-bills-vote-button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 15%,
    rgba(255, 255, 255, 0.36) 46%,
    rgba(255, 255, 255, 0) 82%
  );
  transform: translateX(-125%);
  animation: pgf-bills-vote-sheen 2.5s ease-in-out infinite;
}

.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);
  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 6px 14px rgba(30, 24, 16, 0.2),
      0 0 22px rgba(var(--pgf-vote-rgb), 0.42);
  }
}

@keyframes pgf-bills-vote-sweep {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.12);
  }
}

@keyframes pgf-bills-vote-bg {
  0%,
  100% {
    background-position: 0% 50%;
  }
  42% {
    background-position: 72% 50%;
  }
  70% {
    background-position: 100% 50%;
  }
}

@keyframes pgf-bills-vote-sheen {
  0% {
    transform: translateX(-125%);
    opacity: 0;
  }
  18% {
    opacity: 0.82;
  }
  62% {
    opacity: 0.34;
  }
  100% {
    transform: translateX(125%);
    opacity: 0;
  }
}

.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-shell-show {
    width: min(980px, 100%);
  }

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

  .pgf-bills-record-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .pgf-bills-record-vote-state {
    justify-content: flex-start;
  }
}

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

  .pgf-bills-shell-show .pgf-bills-show-title {
    font-size: 1.28rem;
    line-height: 1.28;
  }

  .pgf-bills-shell-show .pgf-bills-thread-card .pgf-forum-block > h4 {
    font-size: 1.12rem;
  }

  .pgf-bills-shell-show .pgf-bills-thread-card .pagination ul {
    flex-wrap: nowrap;
    width: max-content;
  }

  .pgf-bills-shell-show .pgf-bills-thread-card .pagination.pull-left {
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .pgf-bills-shell-show .pgf-bills-thread-card table.post,
  .pgf-bills-shell-show .pgf-bills-thread-card table.post thead,
  .pgf-bills-shell-show .pgf-bills-thread-card table.post tbody,
  .pgf-bills-shell-show .pgf-bills-thread-card table.post tr,
  .pgf-bills-shell-show .pgf-bills-thread-card table.post td {
    display: block;
    width: 100% !important;
  }

  .pgf-bills-shell-show .pgf-bills-thread-card .post .info-head {
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid #dacbb4;
    text-align: left;
    padding: 9px 11px;
  }

  .pgf-bills-shell-show .pgf-bills-thread-card .post .head {
    border-right: 0;
    border-bottom: 1px solid #dacbb4;
    padding: 8px 10px;
  }

  .pgf-bills-shell-show .pgf-bills-thread-card .post .head div {
    padding-right: 8px;
    margin-bottom: 4px;
  }

  .pgf-bills-shell-show .pgf-bills-thread-card .post .head div[style*="float: right"] {
    display: inline-flex;
    margin-left: 0;
  }

  .pgf-bills-shell-show .pgf-bills-thread-card .post .info {
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid #dacbb4;
    text-align: left;
    padding: 10px 12px;
  }

  .pgf-bills-shell-show .pgf-bills-thread-card .post .message {
    padding: 11px 12px;
  }

  .pgf-bills-shell-show .pgf-bills-thread-card .post .message .pgf-message {
    font-size: 1.02rem;
    line-height: 1.5;
  }

  .pgf-bills-shell-show .pgf-bills-thread-card .new-post-form textarea {
    min-height: 170px;
  }

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

  .pgf-bills-card-actions .pgf-bills-action-link {
    width: 100%;
  }

  .pgf-bills-record-details-summary {
    padding: 8px 10px;
  }

  .pgf-bills-record-details-body {
    padding: 9px 10px;
  }
}
