/* static/css/gantt/trial_code.css */

.trial-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 32vw);
    gap: 1rem;
    align-items: start;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.trial-layout-authenticated {
    grid-template-columns: minmax(0, 1fr);
}

.trial-layout-left {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trial-layout-right {
    min-width: 0;
    align-self: start;
}

.trial-header {
    padding: 0;
    margin: 0;
}

.trial-main {
    background: #f6e7b6;
    border-radius: 0.5rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}

.trial-left {
    min-width: 0;
}

.trial-code-line {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    line-height: 1.2;
}

.trial-code-line-authenticated {
    align-items: center;
}

.trial-label {
    font-size: 0.875rem;
    font-weight: 700;
}

.trial-label-authenticated {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.625rem;
    border-radius: 999px;
    background: #2f6ae6;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
}

.trial-code-text {
    font-size: 1.125rem;
    font-weight: 700;
}

.trial-code-highlight {
    color: #d32f2f;
    font-weight: 700;
    letter-spacing: 0.05em;
    user-select: all;
}

.trial-user-email {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2a44;
    word-break: break-all;
}

.trial-user-email-highlight {
    color: #1f2a44;
    font-weight: 700;
}

.trial-note {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: #555;
    line-height: 1.3;
}

.trial-right {
    min-width: 0;
    margin-top: 0.5rem;
}

.trial-right form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.trial-right input {
    flex: 1;
    min-width: 0;
    height: 2.75rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    border: 0.0625rem solid #cfc7a4;
    border-radius: 0.375rem;
    background: #ffffff;
}

.trial-right button {
    height: 2.75rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    border: none;
    border-radius: 0.375rem;
    background: #7a7a7a;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.trial-ad-slot {
    width: 100%;
    min-width: 0;
    min-height: 6.25rem;
    border: 0.0625rem dashed #cfc7a4;
    border-radius: 0.5rem;
    background: #ffffff;
    padding: 0.75rem;
    box-sizing: border-box;
}

.trial-adsense {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 5.5rem;
}

.trial-sheet-tabs {
    margin: 0;
}

.notice-accordion {
    margin: 0;
}

#notice-content.is-collapsed {
    display: none;
}

.notice-accordion.is-collapsed::before {
    content: "確認事項";
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
}

.notice-body {
    font-size: 0.9rem;
    line-height: 1.3;
    color: #555;
    padding: 6px 0;
}

.notice-body p {
    margin: 2px 0;
}

.trial-layout-authenticated .trial-main {
    background: #eaf2ff;
    border: 1px solid #c7d7ff;
}

.rate-limit-error {
    color: #d32f2f;
    background-color: #fdecea;
    border: 1px solid #f5c6cb;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 14px;
}

.trial-reset-form {
    margin: 0;
}

.trial-reset-btn {
    height: 2rem;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    border: none;
    border-radius: 0.375rem;
    background: #6b7280;
    color: #fff;
    cursor: pointer;
    margin-left: 0.5rem;
}

.trial-record-accordion-inline {
    margin-left: 0.5rem;
    border: 1px solid #6b7280;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.45);
    overflow: hidden;
}

.trial-record-summary-inline {
    cursor: pointer;
    list-style: none;
    padding: 0.35rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #444;
    user-select: none;
    white-space: nowrap;
}

.trial-record-summary-inline::-webkit-details-marker {
    display: none;
}

.trial-record-summary-inline::before {
    content: "＋";
    display: inline-block;
    margin-right: 0.35rem;
    font-weight: 700;
}

.trial-record-accordion-inline[open] .trial-record-summary-inline::before {
    content: "－";
}

.trial-record-body-inline {
    padding: 0 0.55rem 0.45rem;
    font-size: 0.75rem;
    color: #555;
    line-height: 1.45;
}

.trial-record-line-inline + .trial-record-line-inline {
    margin-top: 0.2rem;
}

@media (max-width: 48rem) {
    .trial-layout {
        grid-template-columns: 1fr;
    }

    .trial-layout-right {
        order: -1;
    }

    .trial-right form {
        flex-wrap: wrap;
    }

    .trial-right input,
    .trial-right button {
        width: 100%;
    }

    .trial-ad-slot {
        min-height: 5rem;
    }

    .trial-adsense {
        min-height: 4.5rem;
    }

    .trial-record-accordion-inline {
        margin-left: 0;
    }
}