/* ─── Body ─────────────────────────────────────────────────────────── */
.home-body {
    overflow-y: hidden;
    overflow-x: auto;
}

/* ─── Tile area ─────────────────────────────────────────────────────── */
.tile-area {
    padding-top: 160px;
    max-height: 100% !important; /* !important: migrated from inline style, overrides Metro .tile-area */
}

.tile-area.has-announcement-bar {
    padding-bottom: 60px;
}

/* Overrides Metro's `.tile-area .tile-area-title { top: 20px }` */
.tile-area .tile-area-title {
    top: 80px;
}

.tile-area-controls {
    position: fixed;
    right: 40px;
    top: 85px; /* was 40px — corrected to match previously overriding inline style */
}

.tile-group {
    left: 100px;
}

.tile,
.tile-small,
.tile-sqaure,
.tile-wide,
.tile-large,
.tile-big,
.tile-super {
    opacity: 0;
    -webkit-transform: scale(.8);
    transform: scale(.8);
}

/* ─── Tile group title / description ────────────────────────────────── */
/* Uses higher specificity to win over Metro's `.tile-group .tile-group-title` */
.tile-area .tile-group-title {
    margin-left: 5px;
}

.tile-group-title-icon {
    margin-right: 5px;
}

.tile-group-desc {
    font-size: 0.75rem;
    margin: 2px 0 6px 5px;
    line-height: 1.3;
}

/* ─── Tile links ─────────────────────────────────────────────────────── */
.tile-link {
    text-decoration: none;
}

.tile-link-charm {
    text-decoration: none;
    cursor: pointer;
}

/* ─── Empty tile group ───────────────────────────────────────────────── */
.tile-group-empty {
    color: rgba(255, 255, 255, 0.5);
    padding: 40px 0;
    font-size: 1.2rem;
}

.tile-group-empty-link {
    color: #0078d7;
}

/* ─── App Bar: logo / favicon ────────────────────────────────────────── */
.app-bar-logo {
    max-height: 32px;
    vertical-align: middle;
}

.app-bar-favicon {
    max-width: 32px;
    vertical-align: middle;
}

/* ─── App Bar: shortcuts toggle ─────────────────────────────────────── */
.app-bar-shortcuts-toggle {
    cursor: pointer;
}

/* ─── App Bar: shortcuts dropdown tile container ────────────────────── */
.shortcuts-tile-container {
    padding: 8px;
    background-color: var(--app-bar-color);
}

/* ─── App Bar: shortcut link ─────────────────────────────────────────── */
.shortcut-link {
    text-decoration: none;
}

/* ─── App Bar: right-side nav items ─────────────────────────────────── */
.app-bar-nav-item {
    padding: 0 10px !important;
}

.app-bar-nav-link {
    color: #fff;
}

.app-bar-nav-link-reload {
    color: #fff;
    cursor: pointer;
}

.app-bar-nav-icon-lg {
    font-size: 1.3em;
}

.app-bar-nav-icon-sm {
    font-size: 1.1em;
}

/* ─── License dialog ────────────────────────────────────────────────── */
.license-dialog-content {
    padding: 16px;
}

.license-warning-icon {
    font-size: 1.4rem;
    font-weight: 800;
    vertical-align: middle;
    margin-right: 8px;
}

.license-dialog-close {
    margin-top: 12px;
}

/* ─── Charm panel ────────────────────────────────────────────────────── */
.charm-panel {
    overflow-y: auto;
    background-color: var(--app-bar-color);
    z-index: 99999999999 !important;
    box-shadow: 0px 0px 10px rgb(0 0 0) !important;
}

.charm-sidebar {
    width: 300px;
    top: 50px;
    border: none;
    background-color: var(--app-bar-color) !important; /* !important: migrated from inline style, overrides Metro .sidebar */
}

.charm-link-text {
    font-size: 20px;
}

.charm-link-counter {
    margin-top: 3px !important;
    color: rgb(255 255 255 / 40%);
}

.charm-divider {
    background-color: #fff;
    margin: 0;
    height: 0.5px;
}

/* ─── Announcement dialogs ───────────────────────────────────────────── */
.ann-dialog {
    max-width: 640px;
    width: 90vw;
}

.ann-dialog-content {
    padding: 16px 20px;
}

.ann-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    align-items: center;
    font-size: 0.82rem;
}

.ann-meta-item {
    color: #aaa;
}

.ann-meta-icon {
    margin-right: 4px;
}

.ann-body {
    line-height: 1.7;
    font-size: 0.95rem;
}

.ann-close {
    margin-top: 20px;
    text-align: right;
}

/* ─── Announcement bar ───────────────────────────────────────────────── */
#announcement-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    z-index: 1000;
    background: var(--app-bar-color);
    display: flex;
    align-items: center;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ann-bar-label {
    font-weight: 600;
    padding: 0 14px;
    flex-shrink: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ann-bar-icon {
    font-size: 1rem;
}

.ann-bar-divider {
    width: 1px;
    height: 26px;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

#ann-bar-items {
    display: flex;
    align-items: center;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
}

.ann-bar-item {
    padding: 0 18px;
    cursor: pointer;
    color: #fff;
    white-space: nowrap;
    font-size: 13px;
    height: 48px;
    line-height: 48px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: background .15s;
}

.ann-bar-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.ann-bar-item-icon {
    margin-right: 6px;
    font-size: 0.85rem;
}

.ann-bar-item-priority-icon {
    margin-right: 5px;
    font-size: 0.85rem;
}

/* ─── Horizontal scroll hint ─────────────────────────────────────────── */
#scroll-hint {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    animation: scroll-hint-fade-in 0.5s ease-out 1.2s forwards;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#scroll-hint.above-announcement-bar {
    bottom: 64px;
}

#scroll-hint.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
}

.scroll-hint-label {
    font-weight: 600;
}

.scroll-hint-chevrons {
    display: inline-flex;
    align-items: center;
}

.scroll-hint-chevrons span {
    font-size: 14px;
    opacity: 0.3;
    animation: scroll-hint-chevron 1.4s ease-in-out infinite;
}

.scroll-hint-chevrons span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-hint-chevrons span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scroll-hint-fade-in {
    to { opacity: 1; }
}

@keyframes scroll-hint-chevron {
    0%, 100% { opacity: 0.25; transform: translateX(0); }
    50%      { opacity: 1;    transform: translateX(4px); }
}

/* ─── Settings charm button ──────────────────────────────────────────── */
#charmSettings .button {
    margin: 5px;
}

.schemeButtons {
    /*width: 300px;*/
}

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media screen and (max-width: 640px) {
    .tile-area {
        overflow-y: scroll;
    }

    .tile-area-controls {
        display: none;
    }
}

@media screen and (max-width: 320px) {
    .tile-area {
        overflow-y: scroll;
    }

    .tile-area-controls {
        display: none;
    }
}
