@font-face {
    font-family: "DM Sans";
    src: url("/fonts/dm-sans-latin.woff2") format("woff2");
    font-weight: 600 800;
    font-display: swap;
}
#app h1, #app h2 { font-family: "DM Sans", system-ui, sans-serif; }
#app [hidden] { display: none; }
.landing { display: grid; gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.landing-copy { min-width: 0; }
.landing-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); max-width: 24ch; }
.landing-hero h1 span { display: block; }
.landing-hero p { font-size: 1.05rem; max-width: 60ch; margin-bottom: 0; }
.wordmark { display: flex; align-items: center; gap: 1.05rem; max-width: 100%; }
body:has(.landing) .wordmark img { width: min(67vw, 19rem); height: auto; }
body:has(.landing) .tag-sketch { display: block; }
.tag-sketch { display: none; position: relative; width: 2.5rem; height: 1.55rem; flex: 0 0 auto; border: .12rem solid #ffc76e; border-radius: .6rem .2rem .2rem .6rem; transform: rotate(-12deg); }
.tag-sketch::before, .tag-sketch::after { position: absolute; content: ""; }
.tag-sketch::before { width: .35rem; height: .35rem; left: .22rem; top: .48rem; border: 1px solid #ffc76e; border-radius: 50%; }
.tag-sketch::after { width: .72rem; height: .58rem; top: .38rem; right: .29rem; border-block: 1px solid #ffc76e; }
.tag-sketch i { position: absolute; width: .75rem; top: .63rem; left: -.51rem; border-top: 1px solid #ffc76e; transform: rotate(22deg); }
.landing-section { padding: 1rem 0; border-top: 1px solid var(--line); }
.landing-section ul, .landing-section ol { padding-inline-start: 1.4rem; }
.landing-section li + li { margin-top: .65rem; }
.landing-actions { display: grid; gap: 1rem; align-items: start; }
@media (min-width: 52rem) {
    .landing { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); }
    .landing-actions { grid-column: 2; grid-row: 1 / span 2; }
}
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; padding-block: 1rem; }
.footer-row a { padding-block: .35rem; }
.reading-panel { width: min(100%, 34rem); margin-inline: auto; display: grid; gap: 1rem; }
.reading-panel.chat-panel { width: min(100%, 44rem); }
.reading-panel > * { margin-block: 0; }
.reading-panel .app-title { margin: 0; }
.verification-address { overflow-wrap: anywhere; }
.verification-code { max-width: 12rem; font-size: 1.2rem; letter-spacing: .12em; }
[aria-invalid="true"] { border-color: var(--error); }
#app details > summary { color: var(--action); cursor: pointer; }
#app details > summary:hover { text-decoration: underline; }
.return-link { display: inline-block; width: fit-content; padding-block: .5rem; font-weight: 700; }
.return-link::before { content: "← "; }
.owner-dashboard { display: grid; gap: 1.25rem; }
.owner-dashboard > * { margin: 0; }
.owner-dashboard > [aria-live]:empty { display: none; }
.tag-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.tag-card { display: grid; height: 100%; gap: .75rem; align-content: start; padding: .85rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--paper); color: var(--ink); box-shadow: 0 2px 0 var(--line); text-decoration: none; overflow-wrap: anywhere; }
.tag-card:hover, .tag-card:focus-visible { border-color: var(--action); background: #e8eefb; }
.tag-card-title, .tag-card-details { display: flex; align-items: center; }
.tag-card-title { gap: .75rem; }
.tag-card-details { gap: .4rem; flex-wrap: wrap; }
.tag-status { display: inline-block; background: #f2eddc; color: #554a2a; font-size: .85rem; padding: .12rem .4rem; border-radius: .35rem; font-weight: 700; }
.tag-status.active { background: #e3f4ea; color: #18603a; }
.tag-marker { display: inline-grid; place-items: center; width: 1em; height: 1em; vertical-align: -.1em; flex: 0 0 auto; }
.tag-marker svg { width: 100%; height: 100%; }
.slot-1 { color: #2f5bd3; } .slot-2 { color: #1f8a55; } .slot-3 { color: #b07800; } .slot-4 { color: #c23b3b; }
.slot-5 { color: #7a4cc2; } .slot-6 { color: #cf5f17; } .slot-7 { color: #0f7f8a; } .slot-8 { color: #c43d84; }
.slot-9 { color: #4d5b70; } .slot-10 { color: #8a5a2b; }
.tag-card-title .tag-marker { width: 1.75rem; height: 1.75rem; }
.tag-thumbnail { width: 5rem; aspect-ratio: 1; object-fit: contain; }
.tag-status-action { width: 100%; padding-top: .8rem; border-top: 1px solid var(--line); }
.button.danger { color: var(--error); background: var(--white); border-color: var(--error); }
.button.danger:hover { color: var(--white); background: var(--error); }
.conversation-link { display: inline-flex; align-items: baseline; gap: .65rem; font-weight: 700; text-decoration: none; }
.conversation-link > span:last-child { min-width: 0; text-decoration: underline; }
.conversation-list li p { margin-block: .25rem 0; }
.conversation { display: grid; gap: .8rem; min-width: 0; }
.chat-day { text-align: center; color: var(--muted); font-size: .85rem; margin: .2rem 0; }
.chat-message.opening-message { max-width: 100%; background: #e8eefb; }
.app-title { margin-bottom: 1.25rem; }
.app-actions { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }
.app-meta { color: var(--muted); overflow-wrap: anywhere; }
.app-error { color: var(--error); font-weight: 650; }
.notice.email-delivery-tip {
    color: #594311;
    background: #fff4d6;
    border-inline-start: .25rem solid #b48120;
}
.tag-list-heading, .finder-message-heading, .finder-help-header {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
}
.tag-id { display: inline-block; padding: .05rem .35rem; border-radius: .3rem; background: var(--paper); font-size: .9rem; white-space: nowrap; }
.tag-access { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: 1.3rem 0; }
.tag-access p { margin: 0; }
.finder-message-heading { margin-bottom: .4rem; }
.finder-message-heading label { margin: 0; }
.finder-help-button, .text-button { color: var(--action); background: transparent; border: 0; text-decoration: underline; min-height: 2.75rem; padding: 0 .3rem; }
.finder-help-button:hover, .text-button:hover { color: var(--action-hover); background: #e8eefb; }
.finder-message-help {
    width: min(42rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    padding: clamp(1rem, 4vw, 1.6rem);
    border: 1px solid var(--line);
    border-radius: 1rem;
    color: var(--ink);
    background: var(--white);
}
.finder-message-help::backdrop { background: #14213da6; }
.finder-help-header { justify-content: space-between; position: sticky; top: -1.1rem; background: var(--white); padding: .4rem 0; z-index: 1; border-bottom: 1px solid var(--line); }
.finder-message-help section + section { margin-top: 1.1rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.finder-message-help h3 { margin: .45rem 0 0; }
.finder-message-help blockquote { margin: .7rem 0; padding: .75rem; border-radius: .4rem; background: var(--paper); white-space: pre-wrap; overflow-wrap: anywhere; }
.finder-message-help ul { padding-inline-start: 1.3rem; }
.finder-message-help li + li { margin-top: .5rem; }
.unread { background: #dfe7fb; color: #1f3d91; padding: .1rem .45rem; border-radius: .35rem; font-size: .85rem; font-weight: 700; }
.chat { max-height: min(55vh, 29rem); overflow: auto; padding: .45rem; display: grid; gap: .75rem; }
.chat-message { margin: 0; width: fit-content; max-width: 85%; padding: .6rem .75rem; border-radius: .65rem; background: var(--paper); }
.chat-message.mine { justify-self: end; background: #e2e9fb; }
.chat-message p { margin: .15rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.print-label { display: grid; gap: 1.25rem; }
.print-label .print-toolbar { display: grid; justify-items: start; gap: .75rem; }
.print-label .print-toolbar p, .print-label .label-tools { margin: 0; }
.print-label select {
    padding: .45rem .65rem;
    border: 1px solid #7484a3;
    border-radius: .4rem;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}
.label-sheet {
    display: flex;
    flex-wrap: wrap;
    gap: .125in;
    max-width: 5.375in;
}
.label-sheet > .item-label { flex: none; }
.print-label .item-label {
    width: 2.625in;
    height: 1.75in;
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
    padding: 0;
    border: 1.2pt solid #1e3a8a;
    border-radius: .08in;
    color: #14213d;
    background: #f5f7fd;
    print-color-adjust: exact;
}
.print-label .item-label-main {
    width: 2.375in;
    height: 1.25in;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: .025in;
}
.print-label .item-label-top {
    display: grid;
    grid-template-columns: 1.02in minmax(0, 1fr);
    gap: .04in;
    min-height: 0;
}
.print-label .item-label-scan {
    grid-template-rows: auto minmax(0, 1fr);
    gap: .012in;
    min-height: 0;
}
.print-label .item-label-brand { width: 1.02in; }
.print-label .item-label-qr { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.print-label .item-label-copy {
    display: grid;
    align-content: center;
    padding: .035in .04in;
    border-radius: .045in;
    background: #1f3f99;
    color: #fff;
    text-align: center;
}
.print-label .item-label-copy h2 { margin-bottom: .028in; color: #ffd27a; font-size: 10.5pt; }
.print-label .item-label-copy p { margin: 0; font-size: 8pt; line-height: 1.12; }
.print-label .item-label-id {
    padding: 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}
.print-label .item-label-url { display: block; font: 700 8.25pt/1.06 Arial, sans-serif; }
.print-label .item-label-url.long-address { font: 700 7.5pt/1.05 Arial, sans-serif; word-break: break-all; }
.print-label .item-label-code { display: block; margin-top: .014in; font-size: 10pt; font-weight: 700; line-height: 1.05; }
.print-label .item-label-code.long-code { font-size: 8pt; word-break: break-all; }
@media print {
    .site-footer { display: none; }
    body:has(.print-label) .print-toolbar { display: none; }
    .print-label { display: block; }
    #app > .panel:has(.print-label) { padding: 0; border: 0; background: transparent; }
    body:has(.print-label) .item-label { print-color-adjust: exact; }
}
.icon-picker { margin: 0; padding: 0; border: 0; min-width: 0; }
.icon-picker legend { padding: 0; font-weight: 650; }
.icon-picker > p { margin: .5rem 0 .35rem; color: var(--muted); font-size: .9rem; }
.icon-options { display: grid; gap: .4rem; grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr)); }
.icon-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.icon-options label { display: grid; justify-items: center; gap: .2rem; margin: 0; padding: .45rem .25rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--white); font-size: .78rem; font-weight: 600; color: inherit; text-align: center; cursor: pointer; }
.icon-options label svg { width: 1.75rem; height: 1.75rem; color: inherit; }
.icon-options label span { color: var(--ink); }
.icon-options label:hover { border-color: var(--action); background: var(--paper); }
.icon-options input:checked + label { border: 2px solid var(--action); background: #e8eefb; }
.icon-options input:focus-visible + label { outline: 3px solid #e07a00; outline-offset: 2px; }
.icon-picker > small { margin-top: .5rem; }
.tag-status-action p { margin: 0 0 .6rem; }
.phone-app { display: grid; gap: .6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.phone-app > * { margin: 0; }
.phone-app ol { display: grid; gap: .9rem; padding-inline-start: 1.3rem; }
.phone-app li > div { margin-block: .5rem; }
.phone-app code { display: block; padding: .45rem .6rem; border-radius: .35rem; background: var(--paper); overflow-wrap: anywhere; }
/* Tags set up on MyLuggageQR print in its teal colors with its wordmark, wherever they are printed from. */
.print-label .item-label.site-luggage { border-color: #075446; color: #0c342b; background: #f3faf7; }
.print-label .item-label.site-luggage .item-label-copy { background: #005d61; }
.print-label .item-label.site-luggage .item-label-copy h2 { color: #f9db8c; }

/* Avery 6793, 6578 and 6572: 2 × 2⅝ in labels, 3 across and 5 down on US Letter, 3/16 in side margins, 1/8 in
   between columns, 1/2 in top margin. --nudge-x and --nudge-y hold the owner's alignment adjustment. */
.avery-controls { display: grid; gap: .6rem; justify-items: start; }
.avery-controls[hidden] { display: none; }
.avery-controls p { margin: 0; }
.avery-controls label { margin-bottom: .2rem; }
.avery-picker { display: grid; grid-template-columns: repeat(3, 4.4rem); gap: .3rem; padding: .5rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--white); }
.avery-picker .avery-cell-button { display: block; justify-self: stretch; width: 100%; aspect-ratio: 2.625 / 2; padding: 0; border: 1px solid var(--line); border-radius: .35rem; color: var(--ink); background: var(--white); font-size: .78rem; font-weight: 700; }
.avery-picker .avery-cell-button:hover { border-color: var(--action); background: var(--paper); }
.avery-picker .avery-cell-button.print { border: 2px solid var(--action); color: var(--action); background: #e8eefb; }
.avery-picker .avery-cell-button.used { color: var(--muted); background: repeating-linear-gradient(135deg, #eef0f4 0 .35rem, #dde1e8 .35rem .7rem); }
.avery-alignment > div { display: flex; gap: .5rem; align-items: center; margin-top: .4rem; }
.avery-alignment select, .avery-controls select { padding: .35rem .5rem; border: 1px solid #7484a3; border-radius: .4rem; font: inherit; color: var(--ink); background: var(--white); }
.avery-sheet { display: none; }
@page avery { size: letter portrait; margin: 0; }
@media print {
    body:has(.avery-sheet.active) main, body:has(.avery-sheet.active) #app > .panel { margin: 0; padding: 0; border: 0; }
    .avery-sheet.active { display: block; page: avery; position: relative; width: 8.5in; height: 11in; overflow: hidden; }
    .avery-cell { position: absolute; display: grid; place-items: center; width: 2.625in; height: 2in; }
    /* Slightly smaller than the label, so small feed errors do not cut the tag's border. */
    .avery-cell .item-label { transform: scale(.95); }
    .avery-col-0 { left: calc(.1875in + var(--nudge-x, 0in)); }
    .avery-col-1 { left: calc(2.9375in + var(--nudge-x, 0in)); }
    .avery-col-2 { left: calc(5.6875in + var(--nudge-x, 0in)); }
    .avery-row-0 { top: calc(.5in + var(--nudge-y, 0in)); }
    .avery-row-1 { top: calc(2.5in + var(--nudge-y, 0in)); }
    .avery-row-2 { top: calc(4.5in + var(--nudge-y, 0in)); }
    .avery-row-3 { top: calc(6.5in + var(--nudge-y, 0in)); }
    .avery-row-4 { top: calc(8.5in + var(--nudge-y, 0in)); }
}
