/* vietnamese */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/barlow-v13-400-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/barlow-v13-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/barlow-v13-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/barlow-v13-500-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/barlow-v13-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/barlow-v13-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-v13-600-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-v13-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/barlow-v13-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/barlow-v13-700-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/barlow-v13-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/barlow-v13-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  font-family:
    "Barlow",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #29332d;
  background: #f7f8f4;
  font-synthesis: none;
  --muted:#697267;
  --line:#e0e5db;
  --accent:#345742;
  --page-width: 1120px;
  --page-gutter: 36px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: .5;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 540;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -.3px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
p {
  line-height: 1.6;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #6c8a68;
  outline-offset: 3px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.optional {
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}
.site-header {
  flex: none;
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--page-width);
  height: 100%;
  margin: auto;
  padding: 0 var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-group {
  display: flex;
  align-items: flex-end;
  min-width: 0;
}
.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  text-decoration: none;
  transition: opacity .15s;
}
.brand:hover { opacity: .78; }
.brand-labs { font-size: 22px; font-weight: 400; line-height: 1.2; color: #29332d; transform: translateY(3px); }
.brand-logo {
  display: block;
  width: 118px;
  height: 36px;
  flex-shrink: 0;
}
.brand-nav {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin-left: 6px;
  transform: translateY(3px);
}
.brand-nav > a, .brand-nav > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}
.brand-nav .brand-app { color: #29332d; font-size: 22px; font-weight: 600; line-height: 1.2; }
.brand-nav a[aria-current=page] { color: #29332d; }
.brand-nav a:hover { color: var(--accent); text-decoration: none; }
.brand-endorsement, .brand-related { font-weight: 400; line-height: 1.2; }
.brand-asterisk { color: #000; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.quiet-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.quiet-link:hover,
.text-button:hover {
  text-decoration: underline;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: none;
  font-size: 13px;
  padding: 0;
  border-radius: 50%;
}
.avatar {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #edf1e8;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
}
.page {
  --short-url-column: 360px;
  --creation-gap: 28px;
  max-width: var(--page-width);
  padding: 40px var(--page-gutter) 40px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}
.site-footer { flex: none; }
.footer-inner { max-width: var(--page-width); width: 100%; margin: 0 auto; padding: 18px var(--page-gutter); color: var(--muted); font-size: 13px; }
.footer-inner > span { display: block; border-top: 1px solid var(--line); padding-top: 16px; }
.creation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--short-url-column);
  grid-template-rows: min-content 1fr;
  gap: 24px var(--creation-gap);
  align-items: start;
}
.short-url-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  padding: 24px 0 0;
}
.url-value {
  display: flex;
  align-items: center;
  gap: 8px;
}
#create-button { flex: none; min-height: 44px; padding: 10px 15px; }
.url-value > .icon-button { flex: none; }
.qr-toggle { font-size: 13px; color: var(--muted); }
.url-heading .qr-toggle { margin-left: auto; }
#create-status { margin-top: 8px; }
.inline-url {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  padding-left: 8px;
  margin-left: 0;
  transition: border-color .15s, background .15s;
}
.inline-url:hover, .inline-url:focus-within {
  background: #fff;
  border-color: #c9d5c3;
}
.url-host {
  flex-shrink: 0;
  color: #455341;
  font-size: 14px;
}
.inline-url input {
  border: 0;
  background: transparent;
  padding: 0 0 0 1px;
  font-size: 15px;
  box-shadow: none;
  flex: 1;
  width: 0;
  height: 42px;
  outline: none;
}
.inline-url input:focus-visible { outline: none; }
.pencil-button { opacity: .45; flex-shrink: 0; }
.inline-url .pencil-button { min-width: 26px; width: 26px; padding: 3px; }
.inline-url .url-state { flex: none; white-space: nowrap; margin: 0 6px 0 2px; padding: 3px 5px; }
.inline-url:hover .pencil-button, .inline-url:focus-within .pencil-button { opacity: 1; }
.target-aliases { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.target-aliases h3 { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.target-alias { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.target-alias > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field:focus-within > label, label.field:focus-within { color: var(--accent); }
.field .search-control:focus-within, .field > input:focus, .field > select:focus {
  border-color: #6c8a68;
  background: #f8faf4;
  box-shadow: 0 0 0 3px #82997c20;
}
.field .search-control:focus-within input { background: transparent; }
.qr-result .button svg { width: 17px; height: 17px; margin: 0; fill: none; stroke: currentColor; stroke-width: 1.5; }
.qr-result > svg { max-width: 100%; height: auto; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.manager-search { width: min(100%, 320px); margin-bottom: 20px; }
#manage-delete-link { margin-left: 18px; }
#record-path-warning { margin-bottom: 16px; font-size: 13px; }
@media (max-width: 900px) {
  .creation-layout { grid-template-columns: 1fr; grid-template-rows: none; gap: 24px; }
  .short-url-panel { grid-column: auto; grid-row: auto; padding: 0; }
  .url-value { max-width: 500px; }
}
.intro {
  margin: 5px 0 30px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}
.environment {
  border: 1px solid #dedfcf;
  background: #f0f1e7;
  color: #6b704e;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 7px;
  margin: -22px 0 26px;
}
.create-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 30px;
  box-shadow: 0 2px 4px #22331903;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid:has(> .field:only-child),
.form-grid:has(> #owner-field[hidden]):has(> #client-field[hidden]) {
  grid-template-columns: 1fr;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  position: relative;
  align-items: stretch;
}
.field > label {
  font-size: 13px;
}
input:disabled { background: #f2f3ed; color: #747d70; cursor: not-allowed; }
input,
select {
  width: 100%;
  min-width: 0;
  height: 45px;
  border: 1px solid #d8dfd0;
  border-radius: 6px;
  background: #fff;
  padding: 0 12px;
  outline: none;
  font-size: 15px;
}
input::placeholder {
  color: #8d958a;
}
input:focus,
select:focus {
  border-color: #82997c;
  box-shadow: 0 0 0 2px #7895750d;
}
.destination-field {
  margin-top: 23px;
}
.destination-field input {
  height: 49px;
}
.section-space {
  margin-top: 21px;
}
.search-control {
  height: 45px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d8dfd0;
  border-radius: 6px;
  background: white;
  padding-left: 12px;
}
.search-control:focus-within {
  border-color: #82997c;
}
.search-control svg {
  stroke: #6b7866;
  stroke-width: 1.6;
  fill: none;
  flex-shrink: 0;
}
.search-control input {
  border: 0;
  height: 100%;
  box-shadow: none;
  padding-left: 0;
}
.search-control input:focus-visible { outline: none; }
.search-control .icon-button {
  margin-right: 4px;
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  color: #53674c;
  text-align: left;
}
.field-action {
  align-self: flex-start;
  font-size: 13px;
}
.suggestions {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 30px #283a2920;
  z-index: 10;
  max-height: 270px;
  overflow: auto;
  padding: 5px;
}
.suggestion {
  display: block;
  width: 100%;
  border: 0;
  background: white;
  text-align: left;
  padding: 10px;
  border-radius: 4px;
  line-height: 1.5;
  font-size: 14px;
}
.suggestion small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.suggestion:hover,
.suggestion[aria-selected=true] {
  background: #f0f4eb;
}
.no-results {
  font-size: 13px;
  padding: 10px;
  color: var(--muted);
}
.client-picker {
  position: relative;
  min-width: 0;
}
.client-picker .suggestions {
  position: fixed;
  inset: auto;
  margin: 0;
}
.client-picker .search-control:has(input:disabled) {
  background: #f7f8f4;
  opacity: .65;
}
.url-preview {
  padding: 23px 0 24px;
  margin-top: 12px;
}
.url-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.full-url {
  font-size: 15px;
  letter-spacing: -.25px;
  overflow-wrap: anywhere;
}
.url-preview p {
  margin-top: 8px;
  font-size: 13px;
}
.slug-editor {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.slug-editor input {
  height: 37px;
}
.form-footer {
  border-top: 1px solid #edf0e8;
  margin-top: 24px;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.creation-status { color: #345742; line-height: 1.6; }
.form-footer .small {
  max-width: 60%;
  font-size: 13px;
}
.form-footer > .button { margin-left: auto; }
.button {
  min-height: 42px;
  border-radius: 6px;
  padding: 10px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
.primary {
  border: 1px solid #345742;
  background: var(--accent);
  color: #fff;
}
.primary:hover {
  background: #294a36;
}
.secondary {
  border: 1px solid var(--line);
  background: white;
}
.danger {
  color: #fff;
  background: #a43e35;
  border: 1px solid #a43e35;
}
.saved-section {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  max-width: 100%;
}
@media (max-width: 900px) { .saved-section { grid-row: auto; } }
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.section-heading .text-button {
  font-size: 13px;
}
.count {
  font-weight: 400;
  color: #8a9486;
  font-size: 13px;
  margin-left: 6px;
}
.saved-tools {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.saved-search {
  width: min(100%, 380px);
  flex: 0 1 380px;
  min-height: 45px;
}
.saved-tools > select {
  width: 168px;
  font-size: 13px;
}
.link-group {
  margin-top: 0;
}
.group-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: #64705f;
  cursor: pointer;
  list-style: none;
}
.group-heading::-webkit-details-marker {
  display: none;
}
.group-heading:focus-visible {
  outline: 2px solid #6c8a68;
  outline-offset: 3px;
}
.group-heading .count {
  font-size: 12px;
  opacity: .7;
}
.group-chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.link-group[open] > .group-heading .group-chevron {
  transform: rotate(180deg);
}
.qr-preview, .saved-qr {
  margin-top: 12px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}
.link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 8px;
  border-bottom: 1px solid #e8ece2;
  border-radius: 5px;
  transition: background-color .12s;
}
.link-row:hover, .link-row:focus-within { background: #edf1e8; }
.link-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(110px, .65fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.link-title {
  font-size: 14px;
  font-weight: 500;
  display: block;
  line-height: 20px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.link-url {
  display: block;
  min-width: 0;
  font-size: 13px;
  line-height: 20px;
  color: #4c6548;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 31px;
  min-height: 31px;
  border: 0;
  background: none;
  border-radius: 5px;
  color: #677361;
  padding: 6px;
  text-decoration: none;
}
.icon-button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.icon-button:hover {
  background: #eaf0e3;
}
.delete-button:hover {
  background: #f4e9e5;
  color: #a43e35;
}
.empty {
  text-align: center;
  padding: 42px 16px;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.qr-result {
  text-align: left;
}
.qr-result svg {
  display: block;
  max-width: 220px;
  margin: 12px auto;
  width: 100%;
  height: auto;
}
.qr-result a {
  display: inline-flex;
  margin: 6px 0 12px;
}
.qr-result p {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.error {
  font-size: 13px;
  color: #9a3d31;
  background: #fcf0eb;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: #293c2e;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 25px #1b28152b;
  font-size: 13px;
  z-index: 100;
  max-width: calc(100% - 32px);
  text-align: center;
}
dialog {
  width: min(620px, calc(100% - 32px));
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 100px #1c2b2230;
  color: inherit;
  background: #fff;
}
dialog::backdrop {
  background: #15251c66;
  backdrop-filter: blur(2px);
}
#delete-dialog,
#qr-dialog,
#organize-dialog {
  max-width: 430px;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dialog-url {
  font-size: 14px;
  color: #52684a;
  overflow-wrap: anywhere;
  margin: 16px 0;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.tabs button {
  border: 0;
  background: none;
  padding: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}
.tabs button[aria-pressed=true] {
  border-bottom: 2px solid #506f47;
  color: #2b402a;
}
.manager-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 25px;
}
.record-list {
  margin-top: 15px;
  max-height: 350px;
  overflow: auto;
}
.record-list button {
  display: block;
  width: 100%;
  padding: 10px 7px;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 5px;
  font-size: 13px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.record-list button:hover,
.record-list button.active {
  background: #f0f4e9;
}
.record-list small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.manager-detail { min-width: 0; }
.owner-links-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.owner-links-heading h3 { overflow-wrap: anywhere; }
.owner-links-heading .text-button { font-size: 13px; flex: none; }
#owner-links-count { margin: 8px 0 14px; }
.owner-link-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.owner-link-row:hover { background: #f7f9f3; }
.owner-link-open { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 9px 0; font-size: 14px; }
.owner-link-open > span, .owner-link-open > small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.owner-link-open > small { margin-top: 5px; font-size: 13px; color: var(--muted); }
.owner-links-empty { margin-top: 16px; }
.owner-links + #manager-empty + #record-form { margin-top: 24px; }
.owner-links[hidden] + #manager-empty + #record-form { margin-top: 0; }
#record-form h3 {
  margin: 0 0 18px;
}
#record-form .field,
#organize-form .field {
  margin-bottom: 16px;
}
#record-form > .small {
  font-size: 13px;
  margin: 0 0 18px;
}
body[data-view=login] .page {
  display: grid;
  place-items: center;
  padding-block: 32px;
}
.login-card {
  width: 100%;
  max-width: 440px;
  margin: 0;
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  text-align: center;
}
.login-card h1 {
  font-size: 30px;
  line-height: 1.2;
}
.login-card > p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 14px;
}
.login-card .login-destination { margin-top: 28px; color: var(--muted); }
.login-destination strong { color: #29332d; font-weight: 500; }
.google-button {
  border: 1px solid #d7dfd1;
  margin-top: 14px;
  background: #fff;
  width: 100%;
  gap: 12px;
  min-height: 48px;
  font-size: 14px;
  white-space: normal;
  line-height: 1.35;
}
.google-button > svg { flex: none; }
.google-button[aria-disabled=true] {
  opacity: .5;
  pointer-events: none;
}
.preview-link {
  display: inline-block;
  margin-top: 18px;
}
.hub-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  font-size: 21px;
}
.hub-tile b {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}
.hub-tile .muted {
  font-size: 14px;
}
.account-menu {
  position: relative;
}
.account-menu summary {
  list-style: none;
  cursor: pointer;
}
.account-menu summary::-webkit-details-marker {
  display: none;
}
.account-menu-content {
  position: absolute;
  right: 0;
  top: 45px;
  z-index: 30;
  width: 215px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 4px 25px #26372215;
  font-size: 13px;
}
.account-menu-content p {
  overflow-wrap: anywhere;
  margin-bottom: 12px;
}
.account-menu-content .account-name { margin-bottom: 4px; font-weight: 600; }
.account-menu-content .text-button {
  margin-top: 5px;
}
@media (max-width: 640px) {
  :root { --page-gutter: 20px; }
  input, select, .inline-url input { font-size: 16px; }
  .header-inner {
    padding: 0 20px;
  }
  .header-actions {
    gap: 12px;
  }
  .quiet-link {
    font-size: 12px;
  }
  .page {
    padding: 34px 20px 60px;
  }
  h1 {
    font-size: 30px;
  }
  .eyebrow {
    font-size: 12px;
  }
  .create-card {
    padding: 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .intro {
    margin-bottom: 24px;
  }
  .environment {
    margin: -12px 0 24px;
  }
  .saved-tools {
    flex-direction: column;
  }
  .saved-tools > select {
    width: 100%;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading .text-button {
    max-width: 110px;
    text-align: right;
    line-height: 1.6;
  }
  .link-row {
    gap: 6px;
  }
  .link-actions {
    gap: 0;
  }
  .link-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .link-title {
    font-size: 13px;
  }
  .link-url {
    font-size: 13px;
  }
  .form-footer .small {
    max-width: 45%;
    font-size: 13px;
  }
  .manager-grid {
    grid-template-columns: 1fr;
  }
  .record-list {
    max-height: 130px;
  }
  .record-list button {
    display: inline-block;
    width: auto;
    margin-right: 6px;
  }
  .manager-grid > .manager-sidebar {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
  }
  .login-card {
    padding: 30px 24px;
  }
  .brand {
    gap: 6px;
  }
  .brand-logo { width: 102px; height: 31px; }
  .brand-nav { margin-left: 6px; }
  .brand-labs, .brand-nav .brand-app { font-size: 20px; }
  .account-label {
    display: none;
  }
}
.arrow-icon {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
  vertical-align: -1px;
}
.quiet-link .arrow-icon {
  width: 9px;
  height: 9px;
  margin-left: 3px;
}

.url-state { font-size: 12px; border: 1px solid #d9dfd2; border-radius: 4px; padding: 3px 7px; color: #747668; background: #f1f2eb; }
.url-state[data-state=active] { color: #345742; border-color: #c7d9c4; background: #eaf2e5; }
.url-state[data-state=unavailable] { color: #984733; border-color: #e6c4b8; background: #fff3ed; }
.url-activation { margin-top: 8px; color: #7b7d70; font-size: 13px; line-height: 1.6; }
#short-url-panel[data-state=draft] .inline-url { background: #f1f2eb; border-style: dashed; border-color: #d4d9cd; }
#short-url-panel[data-state=draft] #url-slug { color: #7b8275; }
#short-url-panel #url-slug:focus { color: #29332d; }
#short-url-panel[data-state=active] .inline-url { border-color: #b9d0b5; background: #f2f7ed; }
.qr-canvas, .qr-controls { width: min(100%, 192px); }
.qr-canvas { margin: 0; border-radius: 7px; overflow: hidden; }
.qr-canvas > svg { width: 100%; max-width: none; margin: 0; }
.qr-canvas.is-transparent { background-color: #fff; background-image: conic-gradient(#e5e9e1 25%, transparent 0 50%, #e5e9e1 0 75%, transparent 0); background-size: 14px 14px; }
.qr-canvas.is-transparent.dark { background-color: #242b24; background-image: conic-gradient(#343e34 25%, transparent 0 50%, #343e34 0 75%, transparent 0); }
.qr-controls { display: grid; gap: 8px; margin: 10px 0 0; }
.qr-style-controls, .qr-export-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 8px; }
.qr-style-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 8px 4px; border: 1px solid #b8c4b1; border-radius: 7px; background: #fff; color: #293b2a; font-size: 13px; font-weight: 550; white-space: nowrap; }
.qr-style-button:hover { background: #f1f4eb; border-color: #8da183; }
.qr-style-button[aria-pressed=true] { background: #e2edda; border-color: #829974; }
.qr-style-button:active { background: #d6e2cb; }
.qr-style-button svg { display: block; flex: none; width: 16px; height: 16px; margin: 0; }
.qr-formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #bac7b2; border-radius: 7px; overflow: hidden; background: #fff; }
.qr-formats button { min-width: 0; min-height: 44px; padding: 7px 6px; border: 0; background: transparent; font-size: 13px; color: #667460; }
.qr-formats button + button { border-left: 1px solid #d8e0d1; }
.qr-formats button[aria-pressed=true] { background: #e4eddd; color: #29442c; font-weight: 650; }
.qr-formats button:hover { background: #edf2e7; }
.qr-formats button:focus-visible { outline-offset: -4px; }
.qr-save-button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 44px; padding: 9px 4px; border: 1px solid #345742; border-radius: 7px; background: #345742; color: #fff; font-size: 13px; font-weight: 550; white-space: nowrap; }
.qr-save-button svg { width: 18px; height: 18px; margin: 0; fill: none; stroke: currentColor; stroke-width: 1.6; }
.qr-save-button:hover { background: #294632; }
@media (max-width: 640px) { .saved-search { flex: none; width: min(100%, 340px); } }

.saved-management { display: flex; align-items: center; gap: 18px; }
.saved-management .text-button { min-height: 32px; margin-block: -6px; font-size: 13px; color: var(--muted); }

.dialog-heading .close-dialog { min-width: 44px; min-height: 44px; font-size: 28px; line-height: 1; font-weight: 300; }
#manage-dialog { --dialog-top: min(56px, 6vh); width: min(760px, calc(100% - 32px)); inset-block-start: var(--dialog-top); inset-block-end: auto; margin: 0 auto; max-height: calc(100dvh - var(--dialog-top) * 2); overflow-y: auto; scrollbar-gutter: stable; }
.manager-sync { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-left: 14px; }
.manager-sync .target-spinner { margin: 0; }
.visits-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.visits-back { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; margin-bottom: 12px; margin-left: -6px; color: var(--muted); text-decoration: none; font-size: 13px; }
.visits-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.visits-back:hover { color: var(--accent); }
#visits-title:focus { outline: none; }
.visits-search { width: min(100%, 380px); }
#click-status { margin: 0; }
#click-error { margin-bottom: 16px; }
.click-toolbar { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.click-freshness { display: flex; align-items: center; gap: 4px; }
.click-toolbar p { line-height: 1.6; }
.click-toolbar .icon-button { min-width: 44px; min-height: 44px; }
.click-scroll { border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.click-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; font-size: 14px; }
.click-table th { position: sticky; top: 0; z-index: 1; background: #f2f5ee; font-weight: 500; }
.click-table th:first-child { width: 60px; }
.click-table th:nth-child(2) { width: 116px; }
.click-table td, .click-table th { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.click-table td:first-child { white-space: nowrap; }
.click-table td > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.click-table td > small { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.click-empty { padding: 28px 16px !important; color: var(--muted); }
.click-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.click-detail-toggle { min-width: 44px; min-height: 44px; }
.click-table td:first-child { padding-left: 8px; padding-right: 8px; }
.click-detail-toggle[aria-expanded=true] svg { transform: rotate(90deg); }
.click-table time { display: block; }
.click-table time > span { display: block; }
.click-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; white-space: normal; }
.click-details dt { color: var(--muted); font-size: 13px; margin-bottom: 5px; }
.click-details dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.click-detail-row { background: #f7f9f3; }
@media (max-width: 800px) {
  .click-table, .click-table tbody { display: block; }
  .click-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .click-table th { position: static; }
  .click-table tr:not(.click-detail-row) { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; padding: 16px 12px; border-bottom: 1px solid var(--line); }
  .click-table tr:not(.click-detail-row) > td { grid-column: 2; display: block; min-width: 0; padding: 6px 0; border: 0; }
  .click-table tr:not(.click-detail-row) > td:first-child { grid-column: 1; grid-row: 1 / span 5; padding: 0; }
  .click-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
  .click-table tr:not(.click-detail-row) > td:nth-child(n+5) { display: none; }
  .click-table tr:not(.click-detail-row) > td:first-child { grid-row: 1 / span 3; }
  .click-table time { display: flex; flex-wrap: wrap; gap: 6px; }
  .click-table td.click-empty { grid-column: 1 / -1 !important; white-space: normal; }
  .click-detail-row, .click-detail-row > td { display: block; }
  .click-detail-row > td { padding: 20px; }
  .click-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .click-details { grid-template-columns: 1fr; } }
#manage-dialog > .tabs { flex-wrap: wrap; column-gap: 18px; row-gap: 5px; }
.manager-sidebar, .manager-detail { min-width: 0; }
.record-list button { overflow-wrap: anywhere; }
#manager-type-label { margin-top: 14px; font-size: 13px; }
#manager-empty { padding-top: 10px; }
#target-form > h3 { margin-bottom: 18px; }
#target-form .field { margin-bottom: 12px; }
#manager-target-scope { font-size: 13px; margin: 10px 0; }
.manager-target-aliases { margin: 0 0 18px; max-height: 230px; overflow: auto; }
.manager-target-aliases > div { display: flex; align-items: center; gap: 5px; border-bottom: 1px solid var(--line); padding: 5px 0; }
.manager-target-aliases span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
@media (max-width: 640px) { #manage-dialog > .tabs { column-gap: 13px; } #manage-dialog > .tabs button { font-size: 13px; } }
@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .header-actions { gap: 6px; }
  .brand { gap: 6px; }
  .brand-logo { width: 95px; height: 29px; }
  .brand-nav { margin-left: 6px; }
  .brand-labs { font-size: 20px; }
}

.target-advice { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.target-advice > p + p { margin-top: 5px; }
.target-advice[data-kind=file] > p:first-child { color: #805534; }
.target-check { display: flex; align-items: flex-start; gap: 6px; }
.target-spinner { width: 13px; height: 13px; margin-top: 3px; flex: none; border: 1.5px solid #d1dacb; border-top-color: var(--accent); border-radius: 50%; animation: target-spin .8s linear infinite; }
@keyframes target-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .target-spinner { animation: none; border-style: dotted; } }

.manager-heading { display: flex; align-items: center; min-width: 0; }

/* Saved-link controls and guarded address editing. */
.brand-group { align-items: center; }
.brand { align-items: center; gap: 12px; }
.brand-logo { width: 100px; height: 32px; }
.brand-labs { transform: none; }
.brand-nav { transform: none; margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--line); }
.brand-nav .brand-app { gap: 5px; font-size: 20px; }
.links-clip { width: 16px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.inline-url .url-host { width: 116px; height: 42px; border: 0; background-color: transparent; font-size: 14px; padding: 0 14px 0 0; border-radius: 0; }
.inline-url .url-host:disabled { color: #455341; cursor: default; opacity: 1; }
.inline-url input[readonly] { cursor: text; }
.qr-toggle { min-height: 34px; gap: 6px; padding: 6px 10px; color: #345742; border-color: #b9c8b3; background: #fff; }
.qr-toggle[aria-pressed=true] { background: #e6efdf; }
.qr-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.saved-tools { display: flex; flex-direction: row; gap: 10px; align-items: center; }
.saved-search { flex: 1; min-width: 0; max-width: 380px; }
.saved-management { flex: none; gap: 6px; }
.utility-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 45px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #52664b; font-size: 13px; }
.utility-button:hover { background: #eef3e8; }
.utility-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.link-url-wrap { display: inline-flex; align-items: center; min-width: 0; gap: 4px; }
.link-url-wrap .link-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-url-wrap > .icon-button { flex: none; min-width: 28px; width: 28px; }
.link-actions { flex: none; }
.link-menu-popover { position: fixed; inset: auto; margin: 0; width: 180px; padding: 5px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 8px 30px #1d33252b; color: #29332d; }
.link-menu-popover::backdrop { background: none; }
.link-menu-popover button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 8px; text-align: left; border: 0; border-radius: 4px; background: transparent; font-size: 13px; }
.link-menu-popover button:hover { background: #f0f5e9; }
.link-menu-popover button[data-action=delete] { color: #984733; }
.link-menu-popover svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.owner-link-main { flex: 1; min-width: 0; }
.owner-link-main > .link-url-wrap { display: flex; }
.owner-link-main small { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owner-links-heading { margin-bottom: 14px; }
.record-url-row { display: flex; align-items: center; border: 1px solid #d8dfd0; border-radius: 6px; padding: 0 8px; min-width: 0; }
.record-url-row > span, .record-url-row > select { flex: none; color: #52664b; font-size: 14px; }
.record-url-row > select { width: 135px; border: 0; padding-left: 0; }
.record-url-row > input { flex: 1; min-width: 0; border: 0; padding-left: 0; }
.record-url-row > div { flex: none; }
#rename-dialog { max-width: 500px; }
.rename-field { margin: 22px 0 16px; }
.rename-ack { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.rename-ack input { flex: none; width: 17px; height: 17px; margin: 2px 0; accent-color: #345742; }
#visits-link-context { margin-top: 8px; font-size: 15px; overflow-wrap: anywhere; }
@media(max-width:640px){
 .brand { gap: 8px; }.brand-logo{width:88px;height:28px}.brand-labs{font-size:20px}.brand-nav{margin-left:10px;padding-left:10px}.brand-nav .brand-app{font-size:18px;gap:3px}.links-clip{width:14px;height:18px}
 .saved-tools { gap: 6px; }.saved-search{width:auto;flex:1}.utility-button{width:38px;padding:8px}.utility-button span{display:none}
 .managed-link .owner-link-row{flex-wrap:wrap}.owner-link-main{flex-basis:100%}.managed-link .link-actions{margin-left:auto}
 .record-url-row{padding:0 5px}.record-url-row > select{width:126px}.record-url-row > span{font-size:13px}
}
.url-separator { flex: none; font-size: 14px; color: #455341; padding-right: 2px; }
.inline-url .url-host:disabled { appearance: none; background-image: none; padding-right: 0; width: 103px; }

/* Compact shared identity and contextual saved-link tools. */
.brand-group, .brand { align-items: flex-end; }
.brand { gap: 7px; }
.brand-labs { font-size: 17px; line-height: 1; padding-bottom: 2px; }
.brand-nav { margin-left: 10px; padding-left: 10px; padding-bottom: 2px; }
.brand-nav .brand-app { font-size: 18px; line-height: 1; }
.url-heading { margin-bottom: 8px; }
.url-actions { display: flex; gap: 6px; margin-top: 9px; }
.url-actions .qr-toggle { min-height: 36px; }
.url-state[data-state=unavailable] { color: #a32626; border-color: #e2a7a7; background: #fde9e9; }
#short-url-panel[data-state=unavailable] .inline-url { border-color: #dba1a1; background: #fff6f6; }
.inline-url:focus-within { box-shadow: 0 0 0 2px #34574220; }
.section-heading { align-items: center; }
.saved-tools { margin-bottom: 18px; }
.saved-search { flex: none; width: min(100%, 380px); }
.saved-management .utility-button { width: auto; height: 36px; padding: 6px 10px; }
.saved-management .utility-button span { display: inline; }
.manager-header-actions { display: flex; align-items: center; gap: 10px; }
.manager-header-actions .utility-button { height: 36px; }
.manager-header-actions .utility-button span { display: inline; }
.saved-link > summary { cursor: pointer; list-style: none; }
.saved-link > summary::-webkit-details-marker { display: none; }
.saved-link[open] > summary { background: #eef2e9; }
.saved-link .icon-button, .managed-link .icon-button { border: 1px solid transparent; border-radius: 5px; transition: background .12s, border-color .12s, box-shadow .12s; }
.saved-link .icon-button:hover, .saved-link .icon-button:focus-visible, .managed-link .icon-button:hover, .managed-link .icon-button:focus-visible { background: #fff; border-color: #b9c8b0; color: #294a32; box-shadow: 0 1px 3px #25382718; }
.saved-link .icon-button:active { background: #dce6d3; box-shadow: none; }
.saved-link .icon-button[aria-expanded=true] { background: #dfe9d7; border-color: #bdceb2; }
.saved-expansion { padding: 12px 8px 18px; }
.saved-expansion .saved-qr { margin-top: 0; padding-top: 0; border: 0; }
.qr-export-controls > .qr-formats { grid-column: 1 / -1; }
.qr-copy-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.inline-visits-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inline-visits-heading h3 { font-size: 15px; font-weight: 500; }
.inline-visits-heading strong { margin-left: 6px; font-weight: 600; }
.inline-visit-list { margin-top: 10px; }
.inline-visit { border-top: 1px solid var(--line); }
.inline-visit > summary { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 12px 0; cursor: pointer; list-style: none; font-size: 14px; }
.inline-visit > summary::-webkit-details-marker { display: none; }
.inline-visit > summary small { display: block; color: var(--muted); font-size: 13px; }
.inline-visit .click-details { padding: 16px; background: #f0f4e9; border-radius: 5px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.inline-visit summary > * { min-width: 0; overflow-wrap: anywhere; }
@media(max-width:640px) {
  .brand-labs { font-size: 16px; }
  .brand-nav .brand-app { font-size: 17px; }
  .brand { gap: 6px; }
  .brand-nav { margin-left: 8px; padding-left: 8px; }
  .inline-visit > summary { grid-template-columns: 1fr 1fr; }
  .inline-visit > summary > span:last-child { grid-column: 2; }
  .inline-visit .click-details { grid-template-columns: 1fr; }
}
.brand-labs { padding-bottom: 0; transform: translateY(2px); }
.brand-nav { padding-bottom: 0; transform: translateY(2px); }
.brand-nav .brand-app { min-height: 0; }
.form-grid:has(#owner-field[hidden]):has(#client-field[hidden]):has(#descriptor-field:not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width:640px) { .form-grid:has(#descriptor-field:not([hidden])) { grid-template-columns: 1fr; } }
@media (max-width:480px) {
  .url-value { flex-wrap: wrap; }
  .url-value:has(#create-button:not([hidden])) .inline-url { flex-basis: 100%; }
  #create-button { margin-left: auto; }
}

/* Shared sign-in owns its identity inside the card, with an explicit app handoff. */
body[data-view=login] .site-header { display: none; }
.login-logo { display: block; width: min(230px, 100%); height: auto; margin: 0 auto 26px; }
.login-card h1 { font-size: 26px; }
.login-card .login-destination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 24px; }
.login-after { font-size: 13px; }
.login-route { display: inline-flex; align-items: center; gap: 8px; color: #29332d; font-size: 17px; }
.login-route svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.login-route strong { font-weight: 600; }
@media (max-width:480px) { .login-logo { width: 210px; } }

/* Searchable classification controls, quiet creation feedback and contextual management. */
.search-select { position: relative; width: 100%; }
.search-select > input { padding-right: 30px; cursor: text; }
.select-caret { position: absolute; right: 12px; top: 10px; pointer-events: none; color: var(--muted); }
.search-select .suggestions[popover] { position: fixed; inset: auto; margin: 0; overflow-y: auto; }
.search-select .suggestion { white-space: normal; font-size: 14px; }
.search-control > .icon-button, .client-picker .search-control > .icon-button { min-width: 36px; width: 36px; min-height: 40px; font-size: 25px; font-weight: 400; line-height: 1; }
#qr-toggle { flex: none; min-width: 32px; width: 32px; border: 1px solid transparent; border-radius: 5px; }
#qr-toggle:hover, #qr-toggle[aria-pressed=true], #copy-draft:hover { background: #e5eddc; border-color: #bacab0; }
.owner-detail-actions { display: flex; align-items: center; gap: 14px; }
.owner-links-heading { flex-wrap: wrap; gap: 10px; }
.managed-link .inline-visits, #record-visits { margin: 12px 0 18px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #f8faf5; }
#record-summary { margin-bottom: 18px; }
#record-type { margin-bottom: 8px; }
#record-form > .field { margin-bottom: 16px; }
#record-visits-button { gap: 6px; }
#record-visits-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
#alias-dialog { width: min(540px, calc(100% - 32px)); }
#alias-form > .field { margin-top: 18px; }
.alias-context { line-height: 1.5; }
.folder-hint { display: flex; align-items: center; gap: 7px; }
.folder-hint::before { content: ''; display: inline-block; width: 14px; height: 10px; flex: none; border: 1px solid currentColor; border-radius: 2px; box-shadow: -2px -3px 0 -1px #f7f8f4, -2px -3px 0 0 currentColor; }
@media(max-width:480px) {
 .url-value:has(#copy-draft:not([hidden])) .inline-url { flex-basis: calc(100% - 80px); }
 .managed-link .inline-visit > summary { grid-template-columns: 1fr; }
 .managed-link .inline-visit > summary > span:last-child { grid-column: 1; }
}
#create-form > .destination-field { margin-top: 0; }

/* One compact Labs → app signature, followed by a single sign-in action. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.login-card { max-width: 392px; padding: 32px; }
.login-identity { display: flex; align-items: flex-end; justify-content: center; gap: 12px; margin-bottom: 28px; }
.login-identity .login-logo { flex: none; width: 152px; height: auto; margin: 0; }
.login-identity .login-route { align-items: center; gap: 10px; font-size: 22px; line-height: 1; padding-bottom: 1px; }
.login-identity .login-route svg { width: 20px; height: 20px; stroke: #83907f; stroke-width: 1.4; }
.login-card .google-button { margin-top: 0; gap: 9px; padding-inline: 10px; }
@media(max-width:480px) { .login-card { padding: 28px 22px; } .login-identity { gap: 10px; } .login-identity .login-logo { width: 142px; } .login-identity .login-route { font-size: 21px; gap: 8px; } }
.login-identity .login-route { transform: translateY(3px); }
