/* Layout */
.globaliser .globaliser-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 16px 20px;
    margin: 16px 0;
    max-width: 820px;
}
.globaliser .globaliser-card h2,
.globaliser .globaliser-card h3 { margin-top: 0; }
.globaliser .globaliser-meta { color: #50575e; font-size: 13px; }

/* Status pill */
.globaliser-status-pill {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
}
.globaliser-status-pill::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    background: currentColor;
    opacity: 0.85;
}
.globaliser-status-syncing { background: #ffe7c2; color: #8a3d00; }
.globaliser-status-synced  { background: #d4edda; color: #1b5e20; }
.globaliser-status-syncing::before {
    background: transparent;
    border: 2px solid currentColor;
    border-top-color: transparent;
    box-sizing: border-box;
    opacity: 1;
    -webkit-animation: globaliser-spin 0.9s linear infinite;
            animation: globaliser-spin 0.9s linear infinite;
}

/* Table (ported from v1) */
.globaliser table { border-collapse: collapse; width: 100%; font-family: Arial, Helvetica, sans-serif; }
.globaliser table td, .globaliser table th { border: 1px solid #ddd; padding: 8px; }
.globaliser table tr:nth-child(even) { background-color: #f2f2f2; }
.globaliser table tr:hover { background-color: #ddd; }
.globaliser table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #2271b1;
    color: #fff !important;
}
.globaliser table th a { color: #fff; }

/* Spinner (ported) */
.globaliser .loading-animation {
    display: block;
    position: relative;
    height: 25px;
    width: 25px;
    margin: 10px auto;
    border: 4px rgba(201, 93, 77, 1) solid;
    border-top: 4px black solid;
    border-bottom: 4px black solid;
    border-radius: 50%;
    -webkit-animation: globaliser-spin 1s infinite linear;
            animation: globaliser-spin 1s infinite linear;
}
@-webkit-keyframes globaliser-spin {
    from { -webkit-transform: rotate(0deg);   transform: rotate(0deg); }
    to   { -webkit-transform: rotate(359deg); transform: rotate(359deg); }
}
@keyframes globaliser-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(359deg); }
}

/* Settings rows — label on the left, control flush right */
.globaliser-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #eaeaea;
}
.globaliser-settings-row:first-of-type { border-top: none; }
.globaliser-settings-label { font-weight: 600; }
.globaliser-settings-control {
    display: flex;
    align-items: center;
    gap: 10px;
}
.globaliser-settings-control .globaliser-toggle-feedback {
    font-size: 12px;
    color: #50575e;
    min-width: 60px;
    text-align: right;
}

/* iOS toggle (ported from v1, used in slice 6) */
.toggle-container label { margin: 0 0 0 10px; }
.toggle {
    display: inline-block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.toggle i {
    position: relative;
    display: inline-block;
    margin-right: .5rem;
    width: 46px;
    height: 26px;
    background-color: #e6e6e6;
    border-radius: 23px;
    vertical-align: text-bottom;
    transition: all 0.3s linear;
}
.toggle i::before {
    content: "";
    position: absolute;
    left: 0;
    width: 42px;
    height: 22px;
    background-color: #fff;
    border-radius: 11px;
    transform: translate3d(2px, 2px, 0) scale3d(1, 1, 1);
    transition: all 0.25s linear;
}
.toggle i::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 22px;
    background-color: #fff;
    border-radius: 11px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.24);
    transform: translate3d(2px, 2px, 0);
    transition: all 0.2s ease-in-out;
}
.toggle:active i::after { width: 28px; transform: translate3d(2px, 2px, 0); }
.toggle:active input:checked + i::after { transform: translate3d(16px, 2px, 0); }
.toggle input { display: none; }
.toggle input:checked + i { background: linear-gradient(180deg, #B74534 0%, #C95D4D 100%); }
.toggle input:checked + i::before { transform: translate3d(18px, 2px, 0) scale3d(0, 0, 0); }
.toggle input:checked + i::after  { transform: translate3d(22px, 2px, 0); }
