:root {
  --ink: #24312e;
  --muted: #77827b;
  --green: #23765a;
  --green-light: #eaf3ed;
  --border: #e4e8e2;
  --background: #f6f7f3;
  --sidebar: #172e27;
  --danger: #b35539
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--background)
}

a {
  color: var(--green);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

button,
input,
select,
textarea {
  font: inherit
}

button,
a,
input,
select,
textarea {
  outline-offset: 4px
}

button {
  cursor: pointer
}

.sidebar {
  width: 242px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  color: #d2dfd7;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #547164 transparent;
  scrollbar-width: thin;
  padding: 27px 20px;
  z-index: 5
}

.sidebar::-webkit-scrollbar {
  width: 7px
}

.sidebar::-webkit-scrollbar-thumb {
  background: #547164;
  border-radius: 999px
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 700;
  color: #fff
}

.brand-mark {
  font-size: 33px;
  line-height: 38px;
  background: #c4dfbe;
  color: #203d2d;
  width: 38px;
  height: 38px;
  text-align: center;
  border-radius: 10px;
  font-weight: 700
}

.brand-dot {
  font-size: 8px;
  color: #bfddae;
  margin-left: auto
}

.brand-version {
  margin-top: 4px;
  padding-left: 48px;
  color: #86a092;
  font-size: 10px;
  letter-spacing: .5px;
}

.welcome-message {
  margin-top: 11px;
  color: #acc0b3;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.welcome-message strong {
  color: #eef4ef;
  font-weight: 650;
}

.workspace-label,
.eyebrow,
.nav-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 650
}

.workspace-label {
  color: #90a99a;
  margin-top: 23px
}

.project-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 10px;
  margin: 9px 0 25px;
  border: 1px solid #375044;
  border-radius: 9px
}

.project-card strong {
  display: block;
  max-width: 143px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  color: #eff3e9
}

.project-card small {
  font-size: 10px;
  color: #a2b9a9
}

.mini-icon {
  font-size: 23px;
  color: #c5dba9
}

.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9dd6a7;
  margin-left: 6px
}

nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #b1c5b8;
  font-size: 13px;
  padding: 10px 13px;
  margin: 3px 0;
  border-radius: 6px
}

nav a span {
  font-size: 20px;
  line-height: 22px;
  width: 23px;
  color: #90b09a
}

nav a:hover,
nav a.active {
  background: #2b4839;
  color: #f2f7ed;
  text-decoration: none
}

nav a.active {
  box-shadow: inset 3px 0 #c7dfb2
}

.nav-label {
  color: #799885;
  margin: 25px 13px 8px;
  font-size: 9px
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px
}

.account {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #ebf2e8;
  border-top: 1px solid #355043;
  padding-top: 20px
}

.account>span:last-child {
  margin-left: auto;
  color: #92a994
}

.account strong {
  display: block;
  font-size: 12px
}

.account small {
  font-size: 10px;
  color: #9bb39f
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #c7d9b5;
  color: #234232
}

.logout {
  border: 0;
  background: none;
  color: #8aa391;
  font-size: 10px;
  margin: 10px 0 0 42px
}

.main-shell {
  margin-left: 242px;
  min-height: 100vh
}

.topbar {
  height: 70px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #fdfdfb;
  font-size: 11px
}

.topbar .muted {
  font-size: 9px;
  letter-spacing: 1.3px
}

.breadcrumb {
  margin: 0 16px;
  color: #bcc3b8
}

.top-right {
  display: flex;
  align-items: center;
  gap: 18px
}

.timezone {
  color: #929a90;
  font-size: 10px;
  letter-spacing: .5px
}

.status-pill {
  color: #47754d;
  background: #edf3e7;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px
}

main {
  max-width: 1700px;
  margin: 0 auto;
  padding: 36px 40px 50px
}

.eyebrow {
  color: #81917f;
  font-size: 10px;
  margin-bottom: 9px
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px
}

.page-heading h1 {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: .3px;
  margin: 0 0 6px
}

.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #dce2d9;
  background: #fff;
  color: #42584a;
  padding: 9px 17px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.6;
  min-height: 36px
}

.button:hover {
  background: #f0f4ed;
  text-decoration: none
}

.button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
  box-shadow: 0 2px 3px #22332210
}

.button.primary:hover {
  background: #1b644a
}

.button.danger {
  color: var(--danger);
  border-color: #e6cfc6;
  background: #fffaf6
}

.button.small {
  padding: 5px 11px;
  font-size: 11px;
  min-height: 30px
}

.full {
  width: 100%;
  justify-content: space-between
}

.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap
}

.actions form {
  margin: 0
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 30px
}

.stat {
  background: #fff;
  border: 1px solid var(--border);
  padding: 19px 22px;
  border-radius: 9px;
  color: var(--ink)
}

a.stat:hover {
  text-decoration: none;
  border-color: #a6bdac
}

.stat>span {
  display: block;
  font-size: 12px;
  color: #768272
}

.stat i {
  float: right;
  font-style: normal;
  color: #829777
}

.stat>strong {
  display: block;
  font-size: 36px;
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -1px;
  margin: 9px 0 3px
}

.stat strong small {
  font-size: 11px;
  margin-left: 8px;
  color: #98a190
}

.stat>div {
  font-size: 10px;
  color: #8b9487
}

.stat.warm {
  background: #fff9f3;
  border-color: #eee1d2
}

.stat.warm strong,
.stat.warm i {
  color: #b37544
}

.stat.green {
  background: #edf3e9;
  border-color: #dce7d5
}

.stat.green strong {
  color: #547847
}

.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 22px
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 24px 18px;
  gap: 12px
}

.panel h2,
.toolbar h2 {
  font-size: 15px;
  margin: 0;
  font-weight: 650
}

.panel-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0
}

.text-link {
  font-size: 11px;
  font-weight: 550;
  color: #648063
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: start
}

.table-scroll {
  overflow-x: auto
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left
}

th {
  font-size: 10px;
  color: #87907f;
  background: #fafbf8;
  letter-spacing: .3px;
  font-weight: 500
}

th,
td {
  padding: 15px 20px;
  border-bottom: 1px solid #edf0e9
}

tbody tr:last-child td {
  border-bottom: 0
}

.task-table td {
  font-size: 11px;
  padding: 17px 18px
}

.task-table th {
  padding: 11px 18px;
  white-space: nowrap
}

.sort-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit
}

.sort-link:hover,
.sort-link.active {
  color: #334c3c
}

.task-number {
  width: 1%;
  white-space: nowrap;
  color: #87907f;
  font-variant-numeric: tabular-nums
}

.task-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334c3c;
  font-size: 12px;
  font-weight: 550;
  min-width: 150px
}

.task-check {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfdbcc;
  border-radius: 4px;
  flex-shrink: 0;
  font-size: 10px
}

.task-check.checked {
  background: #65816a;
  color: white
}

.parent-name {
  display: block;
  color: #92a08a;
  font-size: 9px;
  margin: 5px 0 0 24px
}

.badge {
  display: inline-block;
  border-radius: 4px;
  padding: 3px 8px;
  background: #eef0ec;
  font-size: 10px;
  color: #6e7868;
  white-space: nowrap
}

.badge.in_progress {
  background: #e7effb;
  color: #5b79a5
}

.badge.on_hold {
  background: #f8eed9;
  color: #a08848
}

.badge.completed {
  background: #e8f2e6;
  color: #587d4d
}

.badge.cancelled {
  background: #f0eeee;
  color: #877d7d
}

.overdue-label {
  font-size: 9px;
  color: #b15b43;
  white-space: nowrap;
  margin-left: 4px
}

.danger-text {
  color: var(--danger) !important
}

.assignees {
  display: flex;
  flex-wrap: wrap;
  gap: 3px
}

.assignees span {
  font-size: 10px;
  background: #f5f7f1;
  border-radius: 4px;
  padding: 2px 5px;
  white-space: nowrap
}

.assignees .muted {
  background: transparent
}

.priority {
  white-space: nowrap;
  color: #b4b995;
  font-size: 10px
}

.priority-3 {
  color: #aa8455
}

.muted {
  color: var(--muted)
}

.block {
  display: block
}

.empty {
  text-align: center;
  padding: 48px 25px;
  color: #9ca88f
}

.empty>span {
  display: block;
  font-size: 35px;
  color: #b3c5aa;
  margin-bottom: 10px
}

.empty h3 {
  font-size: 13px;
  color: #74826a;
  margin: 0 0 5px;
  font-weight: 500
}

.empty p {
  font-size: 11px;
  margin: 0 0 15px
}

.agenda .empty {
  padding: 44px 15px
}

.agenda-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 23px;
  border-top: 1px solid #edf0e7;
  color: #43503d
}

.date-tile {
  border: 1px solid #e4eadd;
  border-radius: 5px;
  text-align: center;
  min-width: 43px;
  padding: 3px
}

.date-tile small {
  font-size: 8px;
  letter-spacing: .8px;
  color: #a0ad93;
  display: block
}

.date-tile strong {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500
}

.agenda-item>div:last-child>strong {
  font-size: 12px
}

.agenda-item p {
  margin: 3px 0 0;
  font-size: 10px;
  color: #8d9784
}

.agenda-item>div:last-child>small {
  font-size: 9px;
  color: #a7af9d
}

.workspace-note {
  display: flex;
  gap: 18px;
  border-top: 1px solid #e0e6d8;
  padding: 22px 5px;
  margin-top: 12px;
  color: #8c9a7f
}

.workspace-note>span {
  font-size: 25px
}

.workspace-note strong {
  font-size: 11px;
  font-weight: 500
}

.workspace-note p {
  font-size: 10px;
  margin: 3px 0
}

footer {
  padding: 20px 40px;
  border-top: 1px solid #e4e8dc;
  display: flex;
  gap: 14px;
  font-size: 10px;
  color: #a3aa9a
}

footer span:last-child {
  margin-left: auto
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  gap: 14px
}

.tabs {
  display: flex;
  gap: 4px
}

.tabs a {
  color: #8b9582;
  padding: 7px 14px;
  font-size: 12px;
  border-radius: 5px
}

.tabs a.selected {
  background: #edf3e8;
  color: #467046
}

.search {
  display: flex;
  position: relative
}

.search input {
  margin: 0;
  width: 245px;
  padding: 8px 32px 8px 12px;
  font-size: 11px;
  background: #fafbf8
}

.search button {
  position: absolute;
  right: 6px;
  top: 4px;
  background: none;
  border: 0;
  color: #8f9b86;
  font-size: 20px
}

.count {
  display: inline-block;
  font-size: 13px;
  background: #e7ecdf;
  padding: 2px 8px;
  border-radius: 5px;
  margin-left: 8px;
  color: #738765;
  vertical-align: middle
}

.pagination {
  display: flex;
  justify-content: space-between;
  padding: 17px 22px;
  font-size: 10px;
  color: #8f9985;
  border-top: 1px solid var(--border)
}

.pagination>div {
  display: flex;
  gap: 8px
}

.form-panel {
  max-width: 830px;
  padding: 30px
}

.content-panel {
  padding: 27px
}

.content-panel h2 {
  margin-bottom: 18px
}

.form-panel label,
form p>label {
  display: block;
  font-size: 12px;
  color: #65745d;
  font-weight: 550;
  margin-bottom: 7px
}

input:not([type=checkbox]):not([type=radio]),
select,
textarea {
  border: 1px solid #dbe2d3;
  background: #fdfefb;
  color: #34462f;
  border-radius: 5px;
  padding: 9px 11px;
  width: 100%;
  max-width: 100%;
  line-height: 1.5
}

input:focus,
select:focus,
textarea:focus {
  border-color: #83aa7c;
  outline: 2px solid #deecd7
}

select[multiple] {
  min-height: 130px
}

input[type=checkbox] {
  accent-color: var(--green);
  width: 15px;
  height: 15px;
  vertical-align: middle
}

.form-panel p {
  margin: 0 0 20px
}

.helptext {
  display: block;
  font-size: 10px;
  color: #8e9a83;
  margin-top: 6px
}

.errorlist {
  font-size: 12px;
  color: #a9523b;
  padding: 12px 25px;
  background: #fff2ec;
  border-radius: 5px
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 26px
}

.form-panel .check,
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 400;
  margin: 12px 0
}

.notice {
  padding: 15px 20px;
  background: #faf2db;
  border: 1px solid #ece1b7;
  border-radius: 7px;
  color: #847040;
  margin-bottom: 22px;
  font-size: 12px
}

.notice.success {
  background: #e9f3e7;
  border-color: #d7e7d0;
  color: #58774b
}

.warning-text {
  font-size: 11px;
  color: #a4844c
}

.description {
  font-size: 13px;
  line-height: 1.9;
  white-space: normal
}

.metadata {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 15px;
  font-size: 12px;
  margin-top: 25px
}

.metadata dt {
  color: #8c977f
}

.metadata dd {
  margin: 0
}

.detail-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 22px
}

.panel-heading.plain {
  padding: 0 0 15px
}

.list-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eef1e8;
  font-size: 12px;
  color: #54694a
}

.list-link:last-child {
  border-bottom: 0
}

.list-link p {
  margin: 3px 0;
  font-size: 11px
}

.list-link span {
  font-size: 11px;
  color: #91a085
}

.padded {
  padding: 18px 24px
}

.empty-text {
  padding: 0 24px 20px;
  color: #9ca88f;
  font-size: 12px
}

.upload-form,
.inline-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px
}

.upload-form input {
  max-width: 450px
}

.link-button {
  background: none;
  border: 0;
  font-size: 11px
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr))
}

.calendar-weekdays {
  background: #fbfcf8;
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: #8f9984;
  font-size: 10px;
  padding: 11px 0
}

.calendar-cell {
  min-height: 126px;
  border-right: 1px solid #e9ede2;
  border-bottom: 1px solid #e9ede2;
  padding: 9px 7px
}

.calendar-cell:nth-child(7n) {
  border-right: 0
}

.calendar-grid.week .calendar-cell {
  min-height: 440px
}

.day-number {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 11px;
  color: #7d8b70;
  margin-bottom: 5px
}

.day-number.today {
  background: #287756;
  color: white;
  border-radius: 50%
}

.other-month {
  background: #fafbf8
}

.other-month .day-number {
  color: #c3ccba
}

.calendar-event {
  display: block;
  margin: 3px 0;
  background: #eaf2e8;
  color: #5c7c50;
  border-left: 2px solid #94b98b;
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.calendar-event small {
  font-size: 9px;
  display: block;
  color: #839b79
}

.calendar-deadline {
  display: block;
  background: #fbf2e4;
  color: #aa8b59;
  border-radius: 3px;
  font-size: 9px;
  padding: 3px 5px;
  margin: 3px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.calendar-legend {
  display: flex;
  gap: 20px;
  font-size: 10px;
  color: #8c9b7e;
  padding: 16px 22px
}

.calendar-legend span:last-child {
  margin-left: auto
}

.response-row {
  display: grid;
  grid-template-columns: 220px 150px 1fr;
  gap: 15px;
  align-items: center;
  margin: 15px 0
}

.response-row label {
  font-size: 12px
}

.answer-value {
  font-size: 20px;
  text-align: center
}

.operation-links {
  margin-bottom: 22px
}

.break-all {
  word-break: break-all
}

.inline-form input {
  max-width: 280px
}

.inline-form strong {
  min-width: 150px
}

details {
  margin-top: 24px;
  font-size: 12px;
  color: #7f8e72
}

.public-main {
  max-width: 1300px;
  padding: 70px 50px
}

.login-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 90px;
  align-items: center;
  min-height: 75vh
}

.login-intro .brand {
  color: #254830;
  margin-bottom: 70px
}

.login-intro h1 {
  font-size: 40px;
  line-height: 1.6;
  letter-spacing: 2px;
  font-weight: 550;
  color: #304b36
}

.login-intro>p {
  color: #87957b;
  font-size: 14px;
  line-height: 2
}

.login-panel {
  padding: 36px
}

.login-panel h2 {
  font-size: 22px;
  margin: 0 0 12px
}

.login-panel>p {
  font-size: 11px;
  margin-bottom: 26px
}

.login-help {
  font-size: 10px;
  color: #9ba58f;
  margin-top: 22px;
  border-top: 1px solid #e9eddf;
  padding-top: 20px
}

.login-panel form {
  margin-top: 15px
}

.login-panel ul {
  font-size: 11px
}

.divider {
  font-size: 10px;
  color: #96a389;
  text-align: center;
  margin-top: 25px
}

.stage-art {
  display: flex;
  gap: 10px;
  position: relative;
  height: 150px;
  margin-top: 45px;
  align-items: end
}

.stage-art div {
  background: #dce8d1;
  width: 100px;
  border-radius: 80px 80px 0 0;
  height: 100px
}

.stage-art div:nth-child(2) {
  height: 145px;
  background: #b6cda6
}

.stage-art div:nth-child(3) {
  height: 125px;
  background: #8caf7d
}

.stage-art span {
  font-size: 8px;
  letter-spacing: 2px;
  color: #93a783;
  position: absolute;
  bottom: -25px;
  left: 0
}

@media(min-width:1500px) {
  main {
    padding: 42px 55px
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 360px
  }

  .calendar-cell {
    min-height: 145px
  }
}

@media(max-width:1150px) {
  .sidebar {
    width: 210px;
    padding: 22px 14px
  }

  .main-shell {
    margin-left: 210px
  }

  main {
    padding: 28px 24px
  }

  .topbar {
    padding: 0 24px
  }

  .dashboard-grid {
    grid-template-columns: 1fr
  }

  .stats {
    gap: 10px
  }

  .stat {
    padding: 16px
  }

  .detail-grid {
    grid-template-columns: 1fr
  }

  .login-layout {
    gap: 35px;
    grid-template-columns: 1fr 400px
  }

  .task-table td,
  .task-table th {
    padding: 12px
  }

  .calendar-cell {
    min-height: 110px
  }
}

@media(max-width:760px) {
  .sidebar {
    position: static;
    width: 100%;
    overflow-y: visible;
    padding: 15px
  }

  .workspace-label,
  .project-card,
  .sidebar-bottom,
  .nav-label {
    display: none
  }

  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    margin-top: 12px
  }

  .sidebar nav a {
    font-size: 11px;
    padding: 5px
  }

  .main-shell {
    margin-left: 0
  }

  .topbar {
    display: none
  }

  main {
    padding: 22px 15px
  }

  .stats {
    grid-template-columns: repeat(2, 1fr)
  }

  .page-heading h1 {
    font-size: 23px
  }

  .page-heading {
    align-items: start
  }

  .response-row {
    grid-template-columns: 1fr
  }

  .public-main {
    padding: 25px
  }

  .login-layout {
    grid-template-columns: 1fr
  }

  .login-intro {
    display: none
  }

  .toolbar {
    flex-wrap: wrap
  }

  .calendar-panel {
    overflow-x: auto
  }

  .calendar-grid,
  .calendar-weekdays {
    min-width: 700px
  }

  .inline-form {
    flex-wrap: wrap
  }

  .top-right {
    display: none
  }

  .calendar-legend {
    min-width: 700px
  }

  .form-panel {
    padding: 22px
  }
}
.tree-row.tree-depth-0 .task-title-cell {
  border-left: 3px solid var(--accent, #377b64);
}

.tree-row.tree-depth-1 .task-title-cell {
  padding-left: 42px;
}

.tree-row.tree-depth-2 .task-title-cell {
  padding-left: 72px;
}

.tree-row.tree-depth-1 .task-link::before,
.tree-row.tree-depth-2 .task-link::before {
  content: "└";
  color: #79867f;
}

.tree-context .task-title-cell {
  background: #f4f7f5;
}

.poll-create-panel {
  max-width: 900px;
}

.poll-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.helptext {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.candidate-picker {
  margin: 25px 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 22px;
  background: #fafbf8;
}

.candidate-picker-heading,
.candidate-picker-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.candidate-picker-heading label {
  margin: 0;
}

.candidate-picker-nav strong {
  min-width: 105px;
  text-align: center;
}

.candidate-weekdays,
.candidate-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.candidate-weekdays {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.candidate-calendar {
  margin-top: 7px;
}

.candidate-date,
.candidate-calendar-blank {
  min-height: 44px;
}

.candidate-date {
  border: 1px solid #e0e5dc;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

.candidate-date:hover {
  border-color: #7ca38a;
  background: #f0f6ee;
}

.candidate-date.selected {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.selected-candidates {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 17px;
}

.selected-date-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.selected-date {
  border: 1px solid #ceddca;
  border-radius: 999px;
  background: #edf4ea;
  color: #416646;
  padding: 6px 10px;
  font-size: 11px;
}

@media(max-width:760px) {
  .poll-form-row {
    grid-template-columns: 1fr;
  }

  .candidate-picker {
    padding: 15px;
  }

  .candidate-picker-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .candidate-picker-nav {
    width: 100%;
  }

  .candidate-date,
  .candidate-calendar-blank {
    min-height: 39px;
  }
}
