/* Lidan Home 0.3.7 — configurable quick shortcuts */

.shortcut-heading {
  align-items: center;
}

.shortcut-manage-button,
.shortcut-add-button,
.shortcut-reset-button,
.shortcut-action {
  font: inherit;
}

.shortcut-manage-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.shortcut-manage-button:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--surface-raised);
}

.shortcut-manage-button > span:first-child,
.shortcut-add-button > span:first-child {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.shortcut-card {
  --shortcut-accent: #91a1b4;
  position: relative;
  min-width: 0;
  min-height: 82px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: inherit;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.shortcut-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--shortcut-accent) 34%, var(--border-strong));
  background: var(--surface-raised);
}

.shortcut-card:active {
  transform: scale(.985);
}

.shortcut-icon,
.shortcut-manager-icon {
  display: grid;
  place-items: center;
  color: var(--shortcut-accent);
  background: color-mix(in srgb, var(--shortcut-accent) 10%, var(--surface-soft));
  border: 1px solid color-mix(in srgb, var(--shortcut-accent) 16%, var(--border));
}

.shortcut-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.shortcut-name {
  overflow: hidden;
  font-size: .76rem;
  font-weight: 630;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.shortcut-open {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  color: var(--muted-2);
}

.provider-gmail { --shortcut-accent: #e36d68; }
.provider-calendar { --shortcut-accent: #6fa8ff; }
.provider-drive { --shortcut-accent: #e8ae5c; }
.provider-waze { --shortcut-accent: #5cc8d7; }
.provider-discount { --shortcut-accent: #78a4ff; }
.provider-custom { --shortcut-accent: #91a1b4; }

.shortcut-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: .74rem;
}

.shortcut-manager {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.shortcut-sort-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: var(--muted);
  font-size: .72rem;
  cursor: pointer;
}

.shortcut-sort-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: currentColor;
}

.shortcut-manager-list {
  display: grid;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}

.shortcut-manager-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  border-bottom: 1px solid var(--border);
}

.shortcut-manager-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.shortcut-manager-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.shortcut-manager-copy strong {
  font-size: .75rem;
  font-weight: 620;
}

.shortcut-manager-copy small {
  overflow: hidden;
  color: var(--muted-2);
  font-size: .62rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  direction: ltr;
  text-align: start;
}

.shortcut-manager-actions {
  display: flex;
  gap: 3px;
}

.shortcut-action {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.shortcut-action:hover:not(:disabled) {
  background: var(--surface-soft);
  color: var(--text);
}

.shortcut-action:disabled {
  opacity: .28;
  cursor: default;
}

.shortcut-manager.is-auto .reorder-action {
  display: none;
}

.danger-action:hover {
  color: #e87979 !important;
}

.shortcut-add-form {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.shortcut-add-form > strong {
  font-size: .75rem;
  font-weight: 630;
}

.shortcut-form-fields {
  display: grid;
  grid-template-columns: minmax(120px, .55fr) minmax(200px, 1.45fr) auto;
  gap: 7px;
  align-items: end;
}

.shortcut-form-fields label {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: .62rem;
}

.shortcut-form-fields input {
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  outline: none;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-size: .72rem;
}

.shortcut-form-fields input:focus {
  border-color: var(--border-strong);
  background: var(--surface-raised);
}

.shortcut-add-button {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
}

.shortcut-form-error {
  margin: 0;
  color: #e87979;
  font-size: .67rem;
}

.shortcut-reset-button {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-size: .64rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .shortcut-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .shortcuts-section { margin-top: 22px; }
  .shortcut-heading { align-items: center; }
  .shortcut-heading p:not(.section-kicker) { display: none; }
  .shortcut-manage-button {
    min-height: 32px;
    padding-inline: 9px;
    font-size: .66rem;
  }
  .shortcut-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .shortcut-card {
    min-height: 78px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    padding: 9px 5px;
    text-align: center;
  }
  .shortcut-icon {
    width: 31px;
    height: 31px;
  }
  .shortcut-name {
    max-width: 100%;
    font-size: .64rem;
  }
  .shortcut-open { display: none; }
  .shortcut-manager {
    padding: 11px;
    border-radius: 12px;
  }
  .shortcut-manager-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    min-height: 54px;
  }
  .shortcut-manager-copy small { display: none; }
  .shortcut-action {
    width: 28px;
    height: 28px;
  }
  .shortcut-form-fields {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .shortcut-add-button {
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .shortcut-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shortcut-card { min-height: 74px; padding-inline: 3px; }
  .shortcut-icon { width: 29px; height: 29px; }
  .shortcut-name { font-size: .6rem; }
}


.shortcut-brand-logo {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  border-radius: 5px;
}

.shortcut-icon-fallback {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
}

.shortcut-device-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .68rem;
}

.shortcut-device-note > span:first-child {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.shortcut-catalog-section {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}

.shortcut-catalog-heading {
  display: grid;
  gap: 3px;
  margin-bottom: 9px;
}

.shortcut-catalog-heading strong {
  font-size: .78rem;
}

.shortcut-catalog-heading span {
  color: var(--muted);
  font-size: .66rem;
  line-height: 1.45;
}

.shortcut-catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.shortcut-catalog-card {
  --shortcut-accent: #91a1b4;
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 3px 8px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.shortcut-catalog-card:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--shortcut-accent) 35%, var(--border-strong));
  background: var(--surface-raised);
}

.shortcut-catalog-card:disabled {
  opacity: .55;
  cursor: default;
}

.shortcut-catalog-icon {
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--shortcut-accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--shortcut-accent) 16%, var(--border));
}

.shortcut-catalog-name {
  min-width: 0;
  overflow: hidden;
  font-size: .7rem;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.shortcut-catalog-state {
  color: var(--muted);
  font-size: .58rem;
}

.shortcut-custom-link {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.shortcut-custom-link > summary {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 600;
  cursor: pointer;
}

.provider-whatsapp { --shortcut-accent: #25d366; }
.provider-google-maps { --shortcut-accent: #4285f4; }
.provider-spotify { --shortcut-accent: #1db954; }
.provider-bit { --shortcut-accent: #7b61ff; }
.provider-paybox { --shortcut-accent: #45b3e7; }

@media (max-width: 780px) {
  .shortcut-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* v0.3.12 — launcher-style shortcuts */
.shortcut-grid {
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 14px 10px;
}

.shortcut-card {
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  padding: 4px 2px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: center;
  box-shadow: none;
}

.shortcut-card:hover {
  transform: translateY(-1px);
  border-color: transparent;
  background: color-mix(in srgb, var(--surface-soft) 45%, transparent);
}

.shortcut-card:active {
  transform: scale(.97);
}

.shortcut-icon {
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(0, 0, 0, .06);
}

.shortcut-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: contain;
}

.shortcut-local-logo {
  width: 56px;
  height: 56px;
  display: block;
}

.shortcut-icon-fallback {
  width: 26px;
  height: 26px;
  color: var(--shortcut-accent);
}

.shortcut-name {
  width: 100%;
  max-width: 84px;
  overflow: hidden;
  color: var(--text);
  font-size: .68rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.shortcut-open {
  display: none;
}

.shortcut-manager-icon,
.shortcut-catalog-icon {
  overflow: hidden;
  border: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}

.shortcut-manager-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.shortcut-manager-icon .shortcut-brand-logo {
  width: 28px;
  height: 28px;
}

.shortcut-manager-icon .shortcut-local-logo {
  width: 38px;
  height: 38px;
}

.shortcut-manager-row {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 62px;
  gap: 11px;
}

.shortcut-catalog-card {
  min-height: 98px;
  grid-template-columns: 1fr;
  grid-template-rows: 58px auto auto;
  justify-items: center;
  gap: 4px;
  padding: 8px 5px;
  text-align: center;
}

.shortcut-catalog-icon {
  grid-row: auto;
  width: 52px;
  height: 52px;
  border-radius: 13px;
}

.shortcut-catalog-icon .shortcut-brand-logo {
  width: 37px;
  height: 37px;
  border-radius: 8px;
}

.shortcut-catalog-icon .shortcut-local-logo {
  width: 52px;
  height: 52px;
}

.shortcut-catalog-name {
  max-width: 100%;
  font-size: .66rem;
}

.shortcut-catalog-state {
  font-size: .56rem;
}

.shortcut-sort-toggle {
  display: none !important;
}

.shortcut-manager .reorder-action {
  display: grid;
}

@media (max-width: 760px) {
  .shortcut-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 7px;
  }

  .shortcut-card {
    min-height: 86px;
    padding: 2px 0;
  }

  .shortcut-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .shortcut-local-logo {
    width: 54px;
    height: 54px;
  }

  .shortcut-brand-logo {
    width: 38px;
    height: 38px;
  }

  .shortcut-name {
    max-width: 76px;
    font-size: .62rem;
  }

  .shortcut-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .shortcut-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .shortcut-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
  }

  .shortcut-local-logo {
    width: 50px;
    height: 50px;
  }

  .shortcut-brand-logo {
    width: 35px;
    height: 35px;
  }
}


/* v0.3.13 — true launcher icons */
.shortcut-icon,
.shortcut-manager-icon,
.shortcut-catalog-icon {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .20);
}

.shortcut-icon {
  width: 60px;
  height: 60px;
  border-radius: 17px;
}

.shortcut-brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.shortcut-name {
  max-width: 88px;
  font-size: .72rem;
  font-weight: 560;
  line-height: 1.2;
}

.shortcut-manager-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.shortcut-manager-icon .shortcut-brand-logo,
.shortcut-catalog-icon .shortcut-brand-logo {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.shortcut-catalog-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.shortcut-catalog-card {
  grid-template-rows: 60px auto auto;
}

@media (max-width: 760px) {
  .shortcut-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 8px;
  }

  .shortcut-card {
    min-height: 94px;
    gap: 8px;
  }

  .shortcut-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
  }

  .shortcut-name {
    max-width: 78px;
    font-size: .67rem;
  }
}

@media (max-width: 390px) {
  .shortcut-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }

  .shortcut-name {
    max-width: 72px;
    font-size: .64rem;
  }
}
