* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: #f5f5f5;
    padding: 20px;
}

#pagetop {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#branding {
    background: #2c3e50;
    color: #fff;
}

#branding td {
    padding: 15px 20px;
}

#textpattern {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

#navpop {
    width: 50%;
}

#nav-primary {
    background: #34495e;
}

#nav-primary .tabs {
    padding: 0;
}

#nav-primary table {
    width: 100%;
}

#nav-primary td {
    padding: 8px;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

#edit {
    width: 100%;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 30px;
}

#edit td {
    padding: 8px;
}

#edit td:first-child {
    width: 120px;
}

#edit p {
    margin: 0 0 15px;
    font-size: 16px;
    color: #2c3e50;
}

#edit p:first-of-type {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

label {
    font-weight: 500;
    color: #555;
}

.noline {
    border: none;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #3498db;
}

input[type="checkbox"] {
    margin-right: 6px;
    vertical-align: middle;
}

input[type="submit"] {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

input[type="submit"]:hover {
    background: #2980b9;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.pophelp {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: #95a5a6;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.pophelp:hover {
    background: #7f8c8d;
    text-decoration: none;
}

#edit tr:last-child td {
    padding-top: 10px;
}

#edit tr:last-child a {
    font-size: 13px;
    color: #7f8c8d;
}

#edit tr:last-child a:hover {
    color: #3498db;
}