@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Caveat:wght@500;600&family=DM+Sans:wght@400;500;600;700&display=swap');

:root{color-scheme:light;--ink:#222;--muted:#606060;--accent:#343434;--deep:#222;--line:#dcdcdc;--paper:#fff;--wash:#f3f3f3;background:var(--paper);color:var(--ink);font-family:'DM Sans',system-ui,sans-serif;--font-editorial:'Barlow Condensed','Arial Narrow',sans-serif;--font-handwriting:'Caveat',cursive;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
button,select{cursor:pointer}
button{color:inherit}
a{color:inherit}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.site-header{border-bottom:1px solid var(--line);background:var(--paper)}
.header-inner,main{max-width:1640px;margin-inline:auto;padding-inline:clamp(18px,3vw,48px)}
.header-inner{height:67px;display:flex;align-items:center;justify-content:space-between}
.brand {
  color: #292a24;
  font: 700 24px/1.1 Arial, Helvetica, sans-serif;
  letter-spacing: -.6px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-accent { color: #b34250; }
.demo-label{border:1px solid var(--line);border-radius:18px;padding:5px 12px;font-size:13px;color:var(--muted)}
main{padding-bottom:28px}
h2,p{margin:0}
.primary{display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:42px;padding:9px 15px;border:1px solid var(--accent);border-radius:8px;background:var(--accent);color:white;font-size:14px;font-weight:700;white-space:nowrap}
.primary:hover{background:var(--deep)}
.primary span{font-size:18px}
.toolbar{display:flex;align-items:center;gap:10px;min-height:65px}
.search,.category-select{min-height:39px;background:#fff;border:1px solid var(--line);border-radius:8px}
.search{display:flex;align-items:center;gap:10px;padding:0 12px;width:min(285px,100%)}
.search-icon{width:12px;height:12px;border:1.5px solid var(--muted);border-radius:50%;position:relative;flex:none}
.search-icon::after{content:"";position:absolute;width:5px;height:1.5px;background:var(--muted);right:-4px;bottom:-2px;transform:rotate(45deg)}
.search input{min-width:0;width:100%;padding:7px 2px;border:0;background:transparent;color:var(--ink);font-size:14px}
.category-select select{padding:7px 31px 7px 10px;border:0;min-height:37px;color:var(--ink);font-size:14px;background:transparent}
.category-select,.dialog-content select{position:relative}
select{appearance:none;background:linear-gradient(45deg,transparent 50%,#606060 50%) right 15px center/5px 5px no-repeat,linear-gradient(135deg,#606060 50%,transparent 50%) right 10px center/5px 5px no-repeat}
.category-select select{background:linear-gradient(45deg,transparent 50%,#606060 50%) right 15px center/5px 5px no-repeat,linear-gradient(135deg,#606060 50%,transparent 50%) right 10px center/5px 5px no-repeat}
.nearby-filter{display:inline-flex;align-items:center;gap:5px;min-height:34px;font-size:14px;white-space:nowrap}
.nearby-filter input{accent-color:var(--accent);width:15px;height:15px}
.result-count{margin-left:auto;font-size:13px;color:var(--muted);white-space:nowrap}
.table-frame{overflow:auto}
.empty{padding:24px;text-align:center;color:var(--muted)}
.empty button{display:block;margin:10px auto 0;border:0;background:none;text-decoration:underline;color:var(--accent)}
footer{padding-top:16px;color:var(--muted);font-size:12px}
dialog{width:min(490px,calc(100% - 30px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--line);border-radius:14px;color:var(--ink);background:var(--paper)}
dialog::backdrop{background:#0006}
.dialog-content{padding:24px;position:relative}
.dialog-close{position:absolute;top:10px;right:10px;width:32px;height:32px;border:0;border-radius:6px;background:var(--wash);font-size:24px;line-height:1}
.dialog-content h2{padding-right:27px;color:var(--deep);font:700 28px/1.1 var(--font-editorial)}
.dialog-note{margin:7px 0 16px;color:var(--muted);font-size:14px}
.dialog-content form{display:grid;gap:12px}
.dialog-content form label{display:grid;gap:5px;font-size:14px;font-weight:700}
.dialog-content input,.dialog-content select,.dialog-content textarea{width:100%;min-height:40px;padding:7px 11px;border:1px solid var(--line);border-radius:7px;color:var(--ink);background-color:#fff;font-weight:400}
.dialog-content textarea{resize:vertical}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.form-error{font-size:13px;color:var(--accent)}
.place-facts{margin:15px 0;display:grid;gap:8px;font-size:14px}
.place-facts div{display:grid;grid-template-columns:68px 1fr}
.place-facts dt{font-weight:750}
.place-facts dd{margin:0}
.notice{position:fixed;bottom:18px;right:18px;z-index:2;background:#343434;color:white;padding:10px 16px;border-radius:8px}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:620px){.brand{font-size:20px;letter-spacing:-.95px}}
@media(max-width:740px){.header-inner{height:57px}.toolbar{flex-wrap:wrap;padding:10px 0;gap:7px}.search{width:100%}.result-count{margin-left:auto}.site-header,main{min-width:0}}

/* The menu uses the spacing and rules of a printed lunch menu. */
.menu-tools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 20px; }
#lunch-session-label { color: var(--muted); font-size: 13px; }
.menu-views { display: inline-flex; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.menu-views button { border: 0; background: transparent; min-height: 34px; padding: 5px 14px; font-size: 13px; font-weight: 700; }
.menu-views button[aria-pressed="true"] { background: var(--deep); color: white; }
.menu-views button:focus-visible { outline-offset: -3px; outline-color: currentColor; }
.restaurant-menu {
  --menu-paper: #f7f7f7;
  --menu-ink: #202020;
  --menu-rule: #aaa;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 5vw, 82px);
  align-items: start;
  padding: clamp(18px, 3.5vw, 50px);
  background: var(--menu-paper);
  color: var(--menu-ink);
  border-top: 2px solid var(--menu-ink);
}
.printed-restaurant { border-top: 1.5px solid var(--menu-ink); padding: 14px 0 25px; min-width: 0; }
.printed-restaurant h2 { font: 700 clamp(28px, 3.1vw, 43px)/.98 var(--font-editorial); text-transform: uppercase; }
.printed-restaurant button { background: transparent; border: 0; padding: 0; text-align: left; color: inherit; }
.printed-name { text-transform: inherit; }
.printed-name:hover, .printed-meta button:hover { text-decoration: underline; text-underline-offset: 3px; }
.printed-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; font: 700 12px/1.4 'DM Sans', sans-serif; margin-top: 5px; }
.printed-meta button { font-size: inherit; color: var(--deep); }
.printed-location { font-size: 12px; color: var(--muted); margin: 2px 0 11px; }
.printed-dishes { margin: 0; padding: 0; list-style: none; }
.printed-dish { border-top: 1px dotted var(--menu-rule); padding: 10px 0; }
.printed-dish-actions { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.printed-dish-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.printed-dish h3 { margin: 0; font: 700 20px/1 var(--font-editorial); text-transform: uppercase; }
.printed-price { white-space: nowrap; font: 700 12px/1.3 ui-monospace, monospace; }
.printed-description { line-height: 1.42; margin-top: 4px; font-size: 13px; }
.printed-dish-facts { margin-top: 4px; text-transform: uppercase; font: 700 11px/1.4 'DM Sans', sans-serif; letter-spacing: .02em; }
.dish-notes { margin-top: 5px; font-size: 12px; }
.dish-notes summary, .printed-restaurant .printed-review { color: var(--deep); cursor: pointer; font-weight: 700; }
.dish-note-list { margin: 5px 0; padding-left: 18px; overflow-wrap: anywhere; }
.printed-restaurant-note { margin: 1px 0 3px; padding: 7px 0 0; border-top: 1px dotted var(--menu-rule); color: var(--deep); font: 600 20px/1.15 var(--font-handwriting); overflow-wrap: anywhere; }
.printed-restaurant .printed-review { font-size: 12px; padding-block: 4px; }
.restaurant-menu:empty { display: none; }
.restaurant-review-list { padding-left: 20px; line-height: 1.5; overflow-wrap: anywhere; }
.restaurant-review-list li + li { margin-top: 6px; }
@media (max-width: 690px) {
  .restaurant-menu { grid-template-columns: minmax(0, 1fr); }
}

#districts { display: flex; flex-wrap: wrap; gap: 6px; }
#districts button { min-height: 36px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); font-size: 13px; }
#districts button[aria-pressed="true"] { color: #fff; background: var(--deep); border-color: var(--deep); font-weight: 700; }
#catalog-status { font-size: 12px; color: var(--muted); }
#catalog-status { margin: 0 0 10px; }
.nearby-filter { white-space: normal; }
#restaurant-sheet.empty-sheet { display: none; }
.printed-dish h4 { margin: 0; font: 700 20px/1 var(--font-editorial); text-transform: uppercase; }
.printed-dish h4 label { cursor: pointer; }
.printed-price { white-space: normal; max-width: 45%; flex-shrink: 0; text-align: right; overflow-wrap: anywhere; }
.printed-section { font: 700 15px/1.15 var(--font-editorial); letter-spacing: .045em; text-transform: uppercase; margin: 10px 0 1px; color: var(--deep); }
.printed-hours { font-size: 12px; margin: 4px 0; }
.printed-hours summary { cursor: pointer; }
.printed-links { display: flex; flex-wrap: wrap; gap: 5px 13px; margin-block: 6px; font-size: 12px; font-weight: 700; color: var(--deep); }
.printed-expand { display: block; margin-bottom: 5px; }
.dish-source-details { color: var(--muted); }
.dish-source-details summary { color: inherit; }
.place-facts div { grid-template-columns: 110px minmax(0, 1fr); gap: 8px; }
.place-facts dd { overflow-wrap: anywhere; }

/* Keep the worksheet neutral and every data row one line tall. */
.office-districts { padding-top: 12px; }
#districts button { min-height: 32px; }
.toolbar { min-height: 50px; }
.menu-tools { margin-bottom: 10px; }
#restaurant-sheet {
  container: sheet / inline-size;
  max-height: min(70vh, 660px);
  border: 1px solid #ccc;
  border-radius: 4px;
  scrollbar-gutter: stable;
}
#restaurant-sheet > table {
  width: 100%;
  min-width: 1110px;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 13px;
  line-height: 1.25;
}
#restaurant-sheet .sheet-name-col { width: 14.5%; }
#restaurant-sheet .sheet-type-col { width: 10%; }
#restaurant-sheet .sheet-distance-col { width: 6.5%; }
#restaurant-sheet .sheet-hours-col { width: 8%; }
#restaurant-sheet .sheet-preview-col { width: 29.5%; }
#restaurant-sheet .sheet-average-col { width: 7%; }
#restaurant-sheet .sheet-votes-col { width: 9.5%; }
#restaurant-sheet .sheet-comment-col { width: 15%; }
#restaurant-sheet > table > :is(thead, tbody) > tr > * {
  box-sizing: border-box;
  padding: 0 8px;
  height: 34px;
  min-width: 0;
  border: 0;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
#restaurant-sheet > table > :is(thead, tbody) > tr > .sheet-average-rating { text-align: center; font-variant-numeric: tabular-nums; }
#restaurant-sheet > table > :is(thead, tbody) > tr > :last-child { border-right: 0; }
#restaurant-sheet > table > thead > tr > th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #202020;
  background: #ededed;
}
#restaurant-sheet > table > :is(thead, tbody) > tr > th:first-child { position: sticky; left: 0; }
#restaurant-sheet > table > thead > tr > th:first-child { z-index: 3; }
#restaurant-sheet .table-sort {
  display: inline-flex;
  align-items: center;
  justify-content: inherit;
  gap: 4px;
  max-width: 100%;
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}
.table-sort-label { overflow: hidden; text-overflow: ellipsis; }
.table-sort-arrow { flex: none; color: var(--muted); }
#restaurant-sheet th[aria-sort] .table-sort-arrow { color: #202020; }
#restaurant-sheet th button:focus-visible { outline-color: #333; }
#restaurant-sheet > table > tbody tr { --sheet-row: #fff; background: var(--sheet-row); }
#restaurant-sheet > table > tbody:nth-of-type(even) .sheet-restaurant-row { --sheet-row: #f6f6f6; }
#restaurant-sheet > table > tbody tr:hover, #restaurant-sheet > table > tbody tr:focus-within { --sheet-row: #ededed; }
#restaurant-sheet > table > tbody > .sheet-restaurant-row > th:first-child { z-index: 1; background: var(--sheet-row); }
.sheet-clip { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-menu-preview {
  container: menu-tags / inline-size;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.sheet-menu-tag {
  min-width: 0;
  border: 1px solid #d4d4d4;
  border-radius: 5px;
  background: #fff;
  color: inherit;
  padding: 3px 6px;
  font-size: 12px;
}
.sheet-menu-tag:hover { border-color: currentColor; }
.sheet-menu-tag:is([aria-expanded="true"], [aria-pressed="true"]) { background: #e8e8e8; border-color: #999; }
.sheet-menu-category { display: flex; flex: 0 1 auto; align-items: baseline; gap: 4px; white-space: nowrap; }
.sheet-category-name { font-weight: 650; }
.sheet-category-price { flex: none; font-variant-numeric: tabular-nums; }
.sheet-category-diet { color: var(--muted); }
.sheet-menu-category:nth-child(2) .sheet-category-diet { display: none; }
.sheet-menu-category:nth-child(2), .sheet-menu-more-2 { display: none; }
@container menu-tags (min-width: 270px) {
  .sheet-menu-category:nth-child(2) { display: flex; }
  .sheet-menu-more-1 { display: none; }
  .sheet-menu-more-2 { display: inline; }
}
@container menu-tags (min-width: 405px) {
  .sheet-menu-category:nth-child(2) .sheet-category-diet { display: block; }
}
.sheet-menu-filters { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px 8px; }

#restaurant-sheet td.sheet-price { text-align: right; font-variant-numeric: tabular-nums; }
.sheet-toggle, .sheet-review, .sheet-detail-button, .sheet-restaurant-name {
  border: 0;
  background: transparent;
  padding: 2px 0;
  color: inherit;
  text-align: left;
}
.sheet-restaurant-name { font-weight: 700; text-align: left; }
.sheet-price button { margin-left: auto; text-align: right; }
.sheet-restaurant-name, .sheet-hours { width: 100%; }
.sheet-toggle { flex: none; min-width: 20px; padding-inline: 3px; text-align: center; font-size: 12px; }
.sheet-dish-name { padding-left: 8px; font-weight: 500; }
.sheet-review:hover, .sheet-detail-button:hover, .sheet-restaurant-name:hover { text-decoration: underline; text-underline-offset: 2px; }
.sheet-dialog-copy { margin-top: 8px; overflow-wrap: anywhere; }
.sheet-schedule { list-style: none; padding: 0; margin: 10px 0; }
.sheet-schedule li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 740px) {
  #restaurant-sheet { max-height: 65dvh; }
  #restaurant-sheet .sheet-name-col { width: 160px; }
}

.sheet-cuisine {
  width: fit-content;
  padding: 2px 7px;
  border: 1px solid #d9d9d9;
  border-radius: 9px;
  background: #fff;
}
.sheet-feedback, .sheet-feedback-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.reaction-icon {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.restaurant-vote-control { display: inline-flex; align-items: center; gap: 1px; vertical-align: middle; }
:is(.restaurant-vote, .dish-recommendation) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 24px;
  min-height: 24px;
  padding: 2px 4px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #595959;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
:is(.restaurant-vote, .dish-recommendation):hover { background: #f0f0f0; color: #222; }
.restaurant-vote[aria-pressed="true"] { background: #eceef0; border-color: #cdd2d8; color: #222831; }
.restaurant-vote[data-reaction="like"][aria-pressed="true"] { background: #e7f2ec; border-color: #c5ddd0; color: #245b43; }
.restaurant-vote[data-reaction="dislike"][aria-pressed="true"] { background: #f7ece9; border-color: #e9d0ca; color: #863d31; }
.dish-recommendation[aria-pressed="true"] { color: #735315; background: #faf2df; }
.dish-recommendation[aria-pressed="true"] .reaction-icon { fill: #dbaa45; }
:is(.restaurant-vote, .dish-recommendation)[aria-disabled="true"] { cursor: default; opacity: .6; }
.sheet-votes-cell { font-variant-numeric: tabular-nums; }
.sheet-feedback { padding: 2px 0 6px; }
.sheet-review-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 34px;
  padding: 4px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  text-overflow: ellipsis;
}
.sheet-review-input:hover, .sheet-review-input:focus { border-color: #aaa; background: #fff; }
.sheet-review-input:focus-visible, .sheet-feedback button:focus-visible { outline-offset: -1px; }
.feedback-rate, .feedback-submit {
  flex: none;
  min-width: 22px;
  height: 23px;
  padding: 0 3px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
}
.feedback-rate:hover, .feedback-submit:hover { border-color: currentColor; }
.feedback-submit { height: 34px; padding-inline: 12px; background: #262626; color: #fff; border-color: #262626; }
.feedback-submit:disabled { opacity: .45; }
.feedback-attachment { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.feedback-attachment .feedback-choices { gap: 2px; flex-wrap: nowrap; }
.feedback-attachment .feedback-choices button {
  min-width: 25px;
  min-height: 25px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: #875b07;
  font-size: 19px;
  line-height: 1;
}
.feedback-attachment .feedback-choices button:hover { border-color: #aaa; }
.feedback-messages .comment-stars { color: #875b07; letter-spacing: .04em; }
.feedback-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 1.2;
  min-width: 0;
  border: 0;
  padding: 3px 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}
.comment-count { border-radius: 8px; background: #ececec; padding: 0 5px; }
.recommendation-average { font-weight: 600; font-variant-numeric: tabular-nums; }
.feedback-toggle:hover, .feedback-toggle[aria-expanded="true"] { text-decoration: underline; }
.feedback-choices button, .team-choice {
  flex: none;
  border: 1px solid #d5d5d5;
  border-radius: 12px;
  background: #fff;
  padding: 3px 8px;
  white-space: nowrap;
}
.feedback-choices, .team-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.feedback-choices button, .team-choice { min-height: 32px; }
.team-choice[aria-pressed="true"] { background: #343434; border-color: #343434; color: white; }
#restaurant-sheet > table > tbody > :is(.sheet-feedback-row, .sheet-menu-row) > td {
  padding: 0;
  height: auto;
  background: #fafafa;
  white-space: normal;
}
.sheet-detail-panel {
  position: sticky;
  left: 0;
  width: min(100%, 100cqw);
  min-width: 0;
}
.sheet-feedback-row .sheet-detail-panel { padding: 6px 12px; }
.sheet-feedback-row .feedback-status { margin: 0; }
.feedback-thread {
  margin: 0;
  padding: 0;
  list-style: none;
}
.feedback-thread > li {
  display: grid;
  grid-template-columns: clamp(68px, 15%, 145px) minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
}
.feedback-thread > li + li { border-top: 1px solid var(--line); }
.feedback-thread strong, .feedback-messages p { overflow-wrap: anywhere; }
.feedback-messages p + p { margin-top: 3px; }
.feedback-messages .comment-count { margin-left: 5px; color: var(--muted); font-size: 11px; }
.sheet-detail-more {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sheet-menu-row .sheet-detail-more { margin: 4px 8px; }
.sheet-menu-table {
  width: 100%;
  table-layout: fixed;
  border-spacing: 0;
  font-size: 13px;
}
.sheet-menu-table :is(th, td) {
  height: 29px;
  padding: 0 8px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
  vertical-align: middle;
}
.sheet-menu-table thead th {
  background: #f0f0f0;
  color: var(--muted);
  font-size: 11px;
}
.sheet-menu-table .sheet-dish { color: #414141; }
.sheet-menu-table .sheet-dish:hover, .sheet-menu-table .sheet-dish:focus-within { background: #f0f0f0; }
.sheet-menu-table .sheet-menu-price { text-align: right; }
.sheet-menu-table .sheet-menu-name { width: 27%; }
.sheet-menu-table .sheet-menu-ingredients { width: 35%; }
.sheet-menu-table .sheet-menu-diet { width: 15%; }
.sheet-menu-table .sheet-menu-price { width: 12%; }
.sheet-menu-table .sheet-menu-recommend { width: 11%; text-align: right; }
@container sheet (max-width: 580px) {
  .sheet-menu-table .sheet-menu-diet { display: none; }
  .sheet-menu-table .sheet-menu-name { width: 32%; }
  .sheet-menu-table .sheet-menu-ingredients { width: 36%; }
  .sheet-menu-table .sheet-menu-price { width: 14%; }
  .sheet-menu-table .sheet-menu-recommend { width: 18%; }
  .sheet-menu-table :is(th, td) { padding-inline: 4px; }
  .sheet-menu-table .sheet-dish-name { padding-left: 0; }
  .sheet-feedback { flex-wrap: wrap; }
  .sheet-review-input { flex: 1 0 100%; }
}
.feedback-status, #team-status { margin-top: 8px; color: var(--muted); font-size: 13px; }
#team-dialog :is(details, .team-list, #team-invite, #team-invite-link) { margin-top: 10px; }
#team-invite-link { width: 100%; }
#team-dialog .team-consent { display: flex; align-items: center; }
#team-dialog .team-consent input { width: auto; min-height: 0; }

.lunch-ranking {
  width: min(100%, 680px);
  margin: 0 0 14px;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid #262626;
  border-radius: 12px;
  box-shadow: 0 2px 0 #262626;
}
.lunch-ranking:has(.lunch-ranking-row) { min-height: 122px; }
.lunch-ranking-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lunch-ranking-header h2 { font-size: 17px; font-weight: 700; }
.lunch-ranking-header span, #lunch-ranking-empty { color: var(--muted); font-size: 12px; }
#lunch-ranking-empty { margin-top: 5px; }
#lunch-ranking-list { margin: 7px 0 0; padding: 0; list-style: none; }
#lunch-ranking-list:empty { display: none; }
.lunch-ranking-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1.15fr) minmax(0, 1.5fr) 88px;
  align-items: center;
  gap: 7px;
  min-height: 23px;
  font-size: 13px;
}
.lunch-ranking-position, .lunch-ranking-votes { color: var(--muted); font-size: 11px; }
.lunch-ranking-name {
  border: 0;
  padding: 0;
  background: transparent;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lunch-ranking-name:hover { color: var(--muted); }
.sheet-restaurant-row { scroll-margin-top: 34px; }
.sheet-restaurant-row:has(.sheet-restaurant-name:focus) th { box-shadow: inset 2px 0 #333; }
.lunch-ranking-votes { display: flex; justify-content: flex-end; gap: 6px; font-variant-numeric: tabular-nums; }
.lunch-ranking-tally { display: inline-flex; align-items: center; gap: 2px; }
.lunch-ranking-tally .reaction-icon { width: 12px; height: 12px; }
.lunch-ranking-track { display: block; height: 10px; background: #efefef; border-radius: 8px; overflow: hidden; }
.lunch-ranking-bar { display: block; height: 100%; background: #262626; border-radius: inherit; }
.lunch-ranking-row[data-rank="1"] .lunch-ranking-bar { background: #ec532e; }
.lunch-ranking-row[data-rank="3"] .lunch-ranking-bar { background: #f2c648; }
@media (max-width: 480px) {
  .lunch-ranking { padding-inline: 9px; }
  .lunch-ranking-row { grid-template-columns: 12px minmax(0, 1.25fr) minmax(0, 1fr) 80px; gap: 4px; }
}

.recent-activity {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  margin-bottom: 7px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f7f7f7;
  padding-left: 8px;
  overflow: hidden;
  font-size: 12px;
}
.recent-activity h2 { flex: none; margin: 0; font: inherit; font-weight: 700; white-space: nowrap; }
.recent-activity ul {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  gap: 8px;
  margin: 0;
  padding: 3px 8px 3px 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
}
.recent-activity ul:focus-visible { outline-offset: -2px; }
.activity-item {
  flex: none;
  max-width: min(350px, 78vw);
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px 8px;
  border-left: 1px solid #ddd;
}
.activity-empty { color: var(--muted); }
