/**
 * o2Poczta Tools - Companion Plugin Styles
 * Scope-isolated, responsive, WCAG 2.2 AA compliant light-mode SaaS UI
 */

:root {
    --o2p-primary: #0066cc;
    --o2p-primary-hover: #0052a3;
    --o2p-primary-light: #eff6ff;
    --o2p-primary-border: #bfdbfe;
    --o2p-text: #0f172a;
    --o2p-text-muted: #475569;
    --o2p-bg: #ffffff;
    --o2p-bg-subtle: #f8fafc;
    --o2p-border: #e2e8f0;
    --o2p-border-dark: #cbd5e1;
    --o2p-radius-sm: 6px;
    --o2p-radius-md: 10px;
    --o2p-radius-lg: 14px;
    --o2p-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --o2p-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --o2p-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --o2p-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Base Tool Container */
.o2p-tool-container {
    background: var(--o2p-bg);
    border: 1px solid var(--o2p-border);
    border-radius: var(--o2p-radius-lg);
    box-shadow: var(--o2p-shadow-sm);
    padding: clamp(1.25rem, 3vw, 2rem);
    margin: 2rem 0;
    font-family: var(--o2p-font-family);
    color: var(--o2p-text);
    box-sizing: border-box;
}

.o2p-tool-container * {
    box-sizing: border-box;
}

.o2p-tool-header {
    margin-bottom: 1.5rem;
    text-align: left;
}

.o2p-tool-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    background: var(--o2p-primary-light);
    color: var(--o2p-primary);
    border: 1px solid var(--o2p-primary-border);
    border-radius: 9999px;
    margin-bottom: 0.5rem;
}

.o2p-tool-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--o2p-text);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.o2p-tool-description {
    font-size: 1rem;
    color: var(--o2p-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Notice Box */
.o2p-notice {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--o2p-radius-md);
    margin: 1.25rem 0 1.75rem 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.o2p-notice-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.o2p-notice-icon {
    flex-shrink: 0;
    color: #d97706;
}

.o2p-notice-content h3.o2p-notice-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
    color: #78350f;
}

.o2p-notice-content p {
    margin: 0 0 0.5rem 0;
}

.o2p-notice-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    font-weight: 600;
}

.o2p-notice-link {
    color: #92400e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.o2p-notice-link:hover,
.o2p-notice-link:focus-visible {
    color: #b45309;
}

/* Controls Grid */
.o2p-wizard-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .o2p-wizard-controls {
        grid-template-columns: 1fr;
    }
}

.o2p-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.o2p-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--o2p-text);
}

.o2p-btn-group {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 520px) {
    .o2p-btn-group {
        flex-direction: column;
        width: 100%;
    }
}

.o2p-btn-toggle {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: var(--o2p-bg-subtle);
    border: 2px solid var(--o2p-border);
    border-radius: var(--o2p-radius-md);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease-in-out;
    text-align: center;
}

.o2p-btn-toggle strong {
    font-size: 1.1rem;
    color: var(--o2p-text);
}

.o2p-btn-toggle span {
    font-size: 0.75rem;
    color: var(--o2p-text-muted);
    margin-top: 0.2rem;
}

.o2p-btn-toggle:hover {
    border-color: var(--o2p-primary-border);
    background: #f1f5f9;
}

.o2p-btn-toggle.active {
    border-color: var(--o2p-primary);
    background: var(--o2p-primary-light);
}

.o2p-btn-toggle.active strong {
    color: var(--o2p-primary);
}

.o2p-select {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 2px solid var(--o2p-border);
    border-radius: var(--o2p-radius-md);
    background: var(--o2p-bg);
    color: var(--o2p-text);
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s ease-in-out;
}

.o2p-select:focus-visible {
    border-color: var(--o2p-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

/* 2-Column Grid for Cards */
.o2p-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .o2p-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Card Styling */
.o2p-card {
    background: var(--o2p-bg-subtle);
    border: 1px solid var(--o2p-border);
    border-radius: var(--o2p-radius-md);
    padding: 1.25rem;
}

.o2p-card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--o2p-border);
}

.o2p-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--o2p-primary-light);
    color: var(--o2p-primary);
    border-radius: var(--o2p-radius-sm);
}

.o2p-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: var(--o2p-text);
}

.o2p-param-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .o2p-param-row {
        align-items: flex-start;
    }
}

.o2p-param-row:last-child {
    border-bottom: none;
}

.o2p-param-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.o2p-param-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--o2p-text-muted);
}

.o2p-param-val {
    font-family: var(--o2p-font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--o2p-text);
    background: #e2e8f0;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.o2p-param-hint {
    font-size: 0.8rem;
    color: var(--o2p-text-muted);
}

/* Copy Buttons */
.o2p-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: #ffffff;
    border: 1px solid var(--o2p-border-dark);
    border-radius: var(--o2p-radius-sm);
    color: var(--o2p-text);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.o2p-copy-btn:hover {
    background: var(--o2p-primary-light);
    border-color: var(--o2p-primary);
    color: var(--o2p-primary);
}

.o2p-copy-btn:focus-visible {
    outline: 2px solid var(--o2p-primary);
    outline-offset: 2px;
}

.o2p-copy-btn.copied {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

/* Export Bar */
.o2p-export-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #f1f5f9;
    border: 1px solid var(--o2p-border);
    border-radius: var(--o2p-radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .o2p-export-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

.o2p-export-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.o2p-export-info strong {
    font-size: 0.95rem;
    color: var(--o2p-text);
}

.o2p-export-info span {
    font-size: 0.85rem;
    color: var(--o2p-text-muted);
}

/* Buttons */
.o2p-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--o2p-radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    border: none;
    line-height: 1.2;
}

.o2p-btn-primary {
    background: var(--o2p-primary);
    color: #ffffff !important;
}

.o2p-btn-primary:hover,
.o2p-btn-primary:focus-visible {
    background: var(--o2p-primary-hover);
}

.o2p-btn-secondary {
    background: #ffffff;
    color: var(--o2p-text) !important;
    border: 1px solid var(--o2p-border-dark);
}

.o2p-btn-secondary:hover,
.o2p-btn-secondary:focus-visible {
    background: #f8fafc;
    border-color: var(--o2p-primary);
    color: var(--o2p-primary) !important;
}

.o2p-btn-text {
    background: transparent;
    border: none;
    color: var(--o2p-text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: var(--o2p-radius-sm);
    transition: color 0.15s ease-in-out;
}

.o2p-btn-text:hover,
.o2p-btn-text:focus-visible {
    color: var(--o2p-primary);
    background: var(--o2p-primary-light);
}

/* App Instruction Panels */
.o2p-app-instructions {
    background: var(--o2p-bg-subtle);
    border: 1px solid var(--o2p-border);
    border-radius: var(--o2p-radius-md);
    padding: 1.25rem;
}

.o2p-app-instruction-panel {
    display: none;
}

.o2p-app-instruction-panel.active {
    display: block;
}

.o2p-instruction-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--o2p-text);
    margin: 0 0 0.85rem 0;
}

.o2p-instruction-list {
    margin: 0;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--o2p-text);
    line-height: 1.5;
}

/* Troubleshooter Wizard Styles */
.o2p-wizard-card {
    background: var(--o2p-bg-subtle);
    border: 1px solid var(--o2p-border);
    border-radius: var(--o2p-radius-md);
    padding: clamp(1rem, 2vw, 1.5rem);
}

.o2p-wizard-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--o2p-border);
}

.o2p-wizard-step-indicator {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--o2p-primary);
    background: var(--o2p-primary-light);
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
}

.o2p-step-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--o2p-text);
    margin: 0 0 1rem 0;
}

.o2p-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.o2p-option-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #ffffff;
    border: 1px solid var(--o2p-border);
    border-radius: var(--o2p-radius-md);
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease-in-out;
}

.o2p-option-card:hover {
    border-color: var(--o2p-primary);
    background: var(--o2p-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--o2p-shadow-md);
}

.o2p-option-card:focus-visible {
    outline: 2px solid var(--o2p-primary);
    outline-offset: 2px;
}

.o2p-option-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.o2p-option-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.o2p-option-text strong {
    font-size: 0.95rem;
    color: var(--o2p-text);
}

.o2p-option-text span {
    font-size: 0.825rem;
    color: var(--o2p-text-muted);
    line-height: 1.4;
}

/* Diagnostic Result Cards */
.o2p-result-card {
    background: #ffffff;
    border: 2px solid var(--o2p-primary-border);
    border-radius: var(--o2p-radius-md);
    padding: 1.5rem;
}

.o2p-result-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--o2p-primary);
    background: var(--o2p-primary-light);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.o2p-result-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--o2p-text);
    margin: 0 0 0.75rem 0;
}

.o2p-result-desc {
    color: var(--o2p-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.o2p-result-steps {
    padding-left: 1.25rem;
    margin: 0 0 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.925rem;
    color: var(--o2p-text);
    line-height: 1.5;
}

.o2p-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.o2p-tool-footer-note {
    margin-top: 1rem;
    color: var(--o2p-text-muted);
    line-height: 1.4;
    font-size: 0.8rem;
}

/* Quick Actions Grid */
.o2p-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.o2p-action-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid var(--o2p-border);
    border-radius: var(--o2p-radius-md);
    padding: 1.25rem;
    text-decoration: none;
    color: var(--o2p-text);
    transition: all 0.2s ease-in-out;
    position: relative;
}

.o2p-action-card:hover {
    border-color: var(--o2p-primary);
    transform: translateY(-2px);
    box-shadow: var(--o2p-shadow-md);
}

.o2p-action-card:focus-visible {
    outline: 2px solid var(--o2p-primary);
    outline-offset: 2px;
}

.o2p-action-highlight {
    border-color: var(--o2p-primary-border);
    background: linear-gradient(to right, #ffffff, var(--o2p-primary-light));
}

.o2p-action-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--o2p-primary-light);
    color: var(--o2p-primary);
    border-radius: var(--o2p-radius-md);
}

.o2p-action-content {
    flex: 1;
}

.o2p-action-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--o2p-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.o2p-action-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--o2p-text);
}

.o2p-action-desc {
    font-size: 0.85rem;
    color: var(--o2p-text-muted);
    margin: 0;
    line-height: 1.4;
}

.o2p-action-arrow {
    font-size: 1.25rem;
    color: var(--o2p-text-muted);
    transition: transform 0.15s ease-in-out;
}

.o2p-action-card:hover .o2p-action-arrow {
    transform: translateX(4px);
    color: var(--o2p-primary);
}

.o2p-action-sublinks {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.o2p-sublink {
    color: var(--o2p-primary);
    font-weight: 600;
    text-decoration: underline;
}

/* Technical Reference Table */
.o2p-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--o2p-border);
    border-radius: var(--o2p-radius-md);
    margin: 1rem 0;
}

.o2p-table {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.o2p-table th {
    background: var(--o2p-bg-subtle);
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--o2p-text-muted);
    border-bottom: 1px solid var(--o2p-border);
}

.o2p-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--o2p-border);
    color: var(--o2p-text);
}

.o2p-table tr:last-child td {
    border-bottom: none;
}

.o2p-code-val {
    font-family: var(--o2p-font-mono);
    font-weight: 700;
    background: #e2e8f0;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.o2p-badge-pill {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #f1f5f9;
    color: #334155;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Toast Notification */
.o2p-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0f172a;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--o2p-radius-md);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 99999;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.o2p-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.o2p-toast-icon {
    color: #4ade80;
    font-weight: 700;
}

/* ==========================================================================
   Tool 5: Config Generator Styles
   ========================================================================== */
.o2p-gen-controls {
    background: var(--o2p-bg-subtle);
    border: 1px solid var(--o2p-border);
    border-radius: var(--o2p-radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.o2p-gen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.o2p-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.o2p-form-label {
    font-size: 0.95rem;
    color: var(--o2p-text);
}

.o2p-select, .o2p-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--o2p-border-dark);
    border-radius: var(--o2p-radius-sm);
    background: #ffffff;
    color: var(--o2p-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.o2p-select:focus, .o2p-input:focus {
    outline: none;
    border-color: var(--o2p-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.o2p-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.o2p-radio-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.92rem;
    cursor: pointer;
    color: var(--o2p-text);
}

.o2p-radio-label input {
    accent-color: var(--o2p-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.o2p-gen-result-card {
    background: #ffffff;
    border: 1px solid var(--o2p-border);
    border-radius: var(--o2p-radius-md);
    padding: 1.5rem;
    box-shadow: var(--o2p-shadow-sm);
}

.o2p-gen-alert {
    display: flex;
    gap: 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--o2p-radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.o2p-alert-icon {
    font-size: 1.5rem;
    color: #d97706;
    flex-shrink: 0;
}

.o2p-alert-body h4 {
    margin: 0 0 0.35rem 0;
    font-size: 1.05rem;
    color: #92400e;
}

.o2p-alert-body p {
    margin: 0;
    font-size: 0.92rem;
    color: #92400e;
    line-height: 1.5;
}

.o2p-gen-actions-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--o2p-border);
}

.o2p-btn-ext-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--o2p-primary);
    text-decoration: none;
}

.o2p-btn-ext-link:hover {
    text-decoration: underline;
}

.o2p-badge-check {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ==========================================================================
   Tool 6: DNS Authenticator Styles
   ========================================================================== */
.o2p-dns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.o2p-dns-card {
    background: #ffffff;
    border: 1px solid var(--o2p-border);
    border-radius: var(--o2p-radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--o2p-shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.o2p-dns-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--o2p-shadow-md);
}

.o2p-dns-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    background: var(--o2p-primary-light);
    color: var(--o2p-primary);
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.o2p-dns-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
    color: var(--o2p-text);
}

.o2p-dns-card p {
    font-size: 0.92rem;
    color: var(--o2p-text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex: 1;
}

.o2p-dns-record-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--o2p-bg-subtle);
    border: 1px solid var(--o2p-border);
    border-radius: var(--o2p-radius-sm);
    padding: 0.65rem 0.85rem;
}

.o2p-dns-type {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--o2p-text-muted);
    background: #ffffff;
    border: 1px solid var(--o2p-border);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

/* ==========================================================================
   Tool 7: Storage & MIME Calculator Styles
   ========================================================================== */
.o2p-calc-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 1.75rem 0;
}

.o2p-metric-card {
    background: var(--o2p-bg-subtle);
    border: 1px solid var(--o2p-border);
    border-radius: var(--o2p-radius-md);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.o2p-metric-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--o2p-text-muted);
}

.o2p-metric-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--o2p-text);
}

.o2p-metric-sub {
    font-size: 0.825rem;
}
